1
0
Fork 0
mirror of https://github.com/Yetangitu/ampache synced 2025-10-06 03:49:56 +02:00

fix url to song, and throw some non-working tag cloud crap in

This commit is contained in:
Karl 'vollmerk' Vollmer 2009-05-19 22:47:49 +00:00
parent 0a506696ac
commit 02f8bb52fd
9 changed files with 56 additions and 9 deletions

View file

@ -887,7 +887,7 @@ class Song extends database_object implements media {
// We only care about the question mark stuff
$query = parse_url($url,PHP_URL_QUERY);
$elements = explode("&",unhtmlentities($query));
$elements = explode("&",$query);
foreach ($elements as $items) {
list($key,$value) = explode("=",$items);

View file

@ -339,6 +339,9 @@ class xmlData {
// Foreach the ids!
foreach ($songs as $song_id) {
$song = new Song($song_id);
// If the song id is invalid/null
if (!$song->id) { continue; }
$song->format();
$tag_string = '';