diff options
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"; |