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:
parent
0a506696ac
commit
02f8bb52fd
9 changed files with 56 additions and 9 deletions
|
@ -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);
|
||||
|
|
|
@ -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 = '';
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue