From b372d114dce875b9e69230fe903780ae50195584 Mon Sep 17 00:00:00 2001 From: Karl 'vollmerk' Vollmer Date: Mon, 19 Nov 2007 08:34:52 +0000 Subject: fixed an album art config parsing problem, Thanks Karl Hungus more work on xml class and api mojo, handshake logic in place --- lib/preferences.php | 21 --------------------- 1 file changed, 21 deletions(-) (limited to 'lib/preferences.php') diff --git a/lib/preferences.php b/lib/preferences.php index c7f503c1..89468242 100644 --- a/lib/preferences.php +++ b/lib/preferences.php @@ -510,25 +510,4 @@ function update_preference_level($pref_id,$level) { } // update_preference_level -/** - * fix_preferences - * This takes the preferences, explodes what needs to - * become an array and boolean everythings - */ -function fix_preferences($results) { - - $results['auth_methods'] = explode(",",$results['auth_methods']); - $results['tag_order'] = explode(",",$results['tag_order']); - $results['album_art_order'] = explode(",",$results['album_art_order']); - $results['amazon_base_urls'] = explode(",",$results['amazon_base_urls']); - - foreach ($results as $key=>$data) { - if (strcasecmp($data,"true") == "0") { $results[$key] = 1; } - if (strcasecmp($data,"false") == "0") { $results[$key] = 0; } - } - - return $results; - -} // fix_preferences - ?> -- cgit