From 5296a8d351f94a04d19791e4c9d3b73c5cb82ac6 Mon Sep 17 00:00:00 2001 From: Karl 'vollmerk' Vollmer Date: Sat, 19 Jan 2008 23:11:57 +0000 Subject: 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 --- lib/class/xmldata.class.php | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'lib/class/xmldata.class.php') 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 { "\tname]]>\n" . "\tf_user]]\n" . "\t$item_total\n" . + "\t$playlist->type\n" . "\n"; -- cgit