diff options
Diffstat (limited to 'lib/preferences.php')
-rw-r--r-- | lib/preferences.php | 6 |
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 |