summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorKarl 'vollmerk' Vollmer <vollmer@ampache.org>2009-05-19 22:47:49 +0000
committerKarl 'vollmerk' Vollmer <vollmer@ampache.org>2009-05-19 22:47:49 +0000
commit02f8bb52fd9e6ad340e69bbd917f574f7822cbc6 (patch)
tree88df9ad4a5c2a68f8077b2733fa716ca98437dba /lib
parent0a506696acf130d98840d1eaece532040f762308 (diff)
downloadampache-02f8bb52fd9e6ad340e69bbd917f574f7822cbc6.tar.gz
ampache-02f8bb52fd9e6ad340e69bbd917f574f7822cbc6.tar.bz2
ampache-02f8bb52fd9e6ad340e69bbd917f574f7822cbc6.zip
fix url to song, and throw some non-working tag cloud crap in
Diffstat (limited to 'lib')
-rw-r--r--lib/class/song.class.php2
-rw-r--r--lib/class/xmldata.class.php3
2 files changed, 4 insertions, 1 deletions
diff --git a/lib/class/song.class.php b/lib/class/song.class.php
index d0311112..9f5259ef 100644
--- a/lib/class/song.class.php
+++ b/lib/class/song.class.php
@@ -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);
diff --git a/lib/class/xmldata.class.php b/lib/class/xmldata.class.php
index 5fa58e71..b1b97264 100644
--- a/lib/class/xmldata.class.php
+++ b/lib/class/xmldata.class.php
@@ -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 = '';