summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorKarl 'vollmerk' Vollmer <vollmer@ampache.org>2005-12-04 00:03:49 +0000
committerKarl 'vollmerk' Vollmer <vollmer@ampache.org>2005-12-04 00:03:49 +0000
commit14a95b00a23893d9c2a5f4d9545746a8d8cf8a4a (patch)
treeadb01dbb30d1103164f3de16cc242779cdab0ca3 /lib
parentf9345f9e71f97a72be0bf6a5aa4e2a3312b9923d (diff)
downloadampache-14a95b00a23893d9c2a5f4d9545746a8d8cf8a4a.tar.gz
ampache-14a95b00a23893d9c2a5f4d9545746a8d8cf8a4a.tar.bz2
ampache-14a95b00a23893d9c2a5f4d9545746a8d8cf8a4a.zip
fixed a bug where when use_auth was off updating the preferences from the normal section would blow away your admin prefs
Diffstat (limited to 'lib')
-rw-r--r--lib/preferences.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/preferences.php b/lib/preferences.php
index 53c5e6e0..3a7243ef 100644
--- a/lib/preferences.php
+++ b/lib/preferences.php
@@ -127,8 +127,10 @@ function update_preferences($pref_id=0) {
break;
}
- /* Run the update for this preference */
- update_preference($pref_id,$name,$id,$value);
+ /* Run the update for this preference only if it's set */
+ if (isset($_REQUEST[$name])) {
+ update_preference($pref_id,$name,$id,$value);
+ }
} // end foreach preferences