Unset null values in user prefs

pull/46/merge
Thomas Bruederli 12 years ago
parent fa981985ee
commit f27c536401

@ -171,7 +171,7 @@ class rcube_user
// don't save prefs with default values if they haven't been changed yet // don't save prefs with default values if they haven't been changed yet
foreach ($a_user_prefs as $key => $value) { 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]); unset($save_prefs[$key]);
} }

Loading…
Cancel
Save