diff options
author | Thomas Bruederli <thomas@roundcube.net> | 2012-11-19 16:53:21 +0100 |
---|---|---|
committer | Thomas Bruederli <thomas@roundcube.net> | 2012-11-19 16:53:21 +0100 |
commit | f27c536401cee253fd59f58cf391dffe0f9c6bfc (patch) | |
tree | 50f603b3172c090f693973c3399c6459092748e5 /program | |
parent | fa981985ee372e69b1b14a6b6bdde97697086cde (diff) |
Unset null values in user prefs
Diffstat (limited to 'program')
-rw-r--r-- | program/include/rcube_user.php | 2 |
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]); } |