summaryrefslogtreecommitdiff
path: root/program/include/rcube_user.php
diff options
context:
space:
mode:
Diffstat (limited to 'program/include/rcube_user.php')
-rw-r--r--program/include/rcube_user.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/program/include/rcube_user.php b/program/include/rcube_user.php
index 5a8e9005e..7bd73e08c 100644
--- a/program/include/rcube_user.php
+++ b/program/include/rcube_user.php
@@ -171,7 +171,7 @@ class rcube_user
// don't save prefs with default values if they haven't been changed yet
foreach ($a_user_prefs as $key => $value) {
- if (!isset($old_prefs[$key]) && ($value == $config->get($key)))
+ if ($value === null || (!isset($old_prefs[$key]) && ($value == $config->get($key))))
unset($save_prefs[$key]);
}