summaryrefslogtreecommitdiffstats
path: root/lib/class/preference.class.php
diff options
context:
space:
mode:
authordipsol <dipsol@ampache>2008-12-11 07:39:41 +0000
committerdipsol <dipsol@ampache>2008-12-11 07:39:41 +0000
commitefa0fda4ff3133e15c79489e49258247182e3c50 (patch)
tree21390a52d65c1569e386d28d956797ca81e61677 /lib/class/preference.class.php
parent1d990900fb4228df331f71e1810144f063c754bf (diff)
downloadampache-efa0fda4ff3133e15c79489e49258247182e3c50.tar.gz
ampache-efa0fda4ff3133e15c79489e49258247182e3c50.tar.bz2
ampache-efa0fda4ff3133e15c79489e49258247182e3c50.zip
changed the xmlrpc library to the pear xmlrpc library. Also fixed some other litle things not worth mentioning.
Diffstat (limited to 'lib/class/preference.class.php')
-rw-r--r--lib/class/preference.class.php13
1 files changed, 9 insertions, 4 deletions
diff --git a/lib/class/preference.class.php b/lib/class/preference.class.php
index 853e69a9..57368251 100644
--- a/lib/class/preference.class.php
+++ b/lib/class/preference.class.php
@@ -312,11 +312,16 @@ class Preference {
$results['auth_methods'] = trim($results['auth_methods']) ? explode(",",$results['auth_methods']) : array();
$results['tag_order'] = trim($results['tag_order']) ? explode(",",$results['tag_order']) : array();
$results['album_art_order'] = trim($results['album_art_order']) ? explode(",",$results['album_art_order']) : array();
- $results['amazon_base_urls'] = trim($results['amazin_base_urls']) ? explode(",",$results['amazon_base_urls']) : array();
-
+ if (isset($results['amazin_base_urls']))
+ $results['amazon_base_urls'] = trim($results['amazin_base_urls']) ? explode(",",$results['amazon_base_urls']) : array();
+ else
+ $results['amazon_base_urls']= array();
+
foreach ($results as $key=>$data) {
- if (strcasecmp($data,"true") == "0") { $results[$key] = 1; }
- if (strcasecmp($data,"false") == "0") { $results[$key] = 0; }
+ if (!is_array($data)) {
+ if (strcasecmp($data,"true") == "0") { $results[$key] = 1; }
+ if (strcasecmp($data,"false") == "0") { $results[$key] = 0; }
+ }
}
return $results;