diff options
author | Karl 'vollmerk' Vollmer <vollmer@ampache.org> | 2008-01-19 23:11:57 +0000 |
---|---|---|
committer | Karl 'vollmerk' Vollmer <vollmer@ampache.org> | 2008-01-19 23:11:57 +0000 |
commit | 5296a8d351f94a04d19791e4c9d3b73c5cb82ac6 (patch) | |
tree | b26f7d6ec135270353ec1feebc304e49c2311a14 /lib/class/xmldata.class.php | |
parent | ffb43ad33ec6198df04cf188a205f236863d1dd3 (diff) | |
download | ampache-5296a8d351f94a04d19791e4c9d3b73c5cb82ac6.tar.gz ampache-5296a8d351f94a04d19791e4c9d3b73c5cb82ac6.tar.bz2 ampache-5296a8d351f94a04d19791e4c9d3b73c5cb82ac6.zip |
fixed issue with xmlapi when no limit provided, fixed now playing refresh, fixed single item update (Thx alex2008) added some more stuff for managing shoutbox stuff, started work on implementation of CoFs system added untested search method on xmlapi
Diffstat (limited to 'lib/class/xmldata.class.php')
-rw-r--r-- | lib/class/xmldata.class.php | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/class/xmldata.class.php b/lib/class/xmldata.class.php index 491d4074..a75d6dfc 100644 --- a/lib/class/xmldata.class.php +++ b/lib/class/xmldata.class.php @@ -58,6 +58,8 @@ class xmlData { */ public static function set_limit($limit) { + if (!$limit) { return false; } + $limit = intval($limit); self::$limit = $limit; @@ -139,6 +141,7 @@ class xmlData { } // end foreach artists $final = self::_header() . $string . self::_footer(); + return $final; } // artists @@ -240,6 +243,7 @@ class xmlData { "\t<name><![CDATA[$playlist->name]]></name>\n" . "\t<owner><![CDATA[$playlist->f_user]]</owner>\n" . "\t<items>$item_total</items>\n" . + "\t<type>$playlist->type</type>\n" . "</playlist>\n"; |