summaryrefslogtreecommitdiffstats
path: root/lib/ui.lib.php
diff options
context:
space:
mode:
authorKarl 'vollmerk' Vollmer <vollmer@ampache.org>2007-10-18 05:52:06 +0000
committerKarl 'vollmerk' Vollmer <vollmer@ampache.org>2007-10-18 05:52:06 +0000
commitf64a2f4d00b801408b558917bae8f6a428931fe7 (patch)
tree3640a6ac0a94c00d021835a6cf94d83ec7377ccb /lib/ui.lib.php
parent15c56f21f2a74c8d25e8d74b2cc4b4020e9db74f (diff)
downloadampache-f64a2f4d00b801408b558917bae8f6a428931fe7.tar.gz
ampache-f64a2f4d00b801408b558917bae8f6a428931fe7.tar.bz2
ampache-f64a2f4d00b801408b558917bae8f6a428931fe7.zip
fixed admin prefs, flushed out localplay stuff, tweaked filters on browse
Diffstat (limited to 'lib/ui.lib.php')
-rw-r--r--lib/ui.lib.php10
1 files changed, 7 insertions, 3 deletions
diff --git a/lib/ui.lib.php b/lib/ui.lib.php
index d785431f..cbfb0fc1 100644
--- a/lib/ui.lib.php
+++ b/lib/ui.lib.php
@@ -1004,8 +1004,12 @@ function get_user_icon($name,$title='',$id='') {
* primarly by the ajax mojo
*/
function xml_from_array($array,$callback=0,$type='') {
+
+ // If we weren't passed an array then return a blank string
+ if (!is_array($array)) { return ''; }
+
+ // The type is used for the different XML docs we pass
switch ($type) {
-
case 'itunes':
foreach ($array as $key=>$value) {
if (is_array($value)) {
@@ -1025,7 +1029,7 @@ function xml_from_array($array,$callback=0,$type='') {
}
}
- }
+ } // end foreach
return $string;
break;
@@ -1046,7 +1050,7 @@ function xml_from_array($array,$callback=0,$type='') {
}
}
- }
+ } // end foreach
return $string;
break;