Skip to content

Commit

Permalink
Unset null values in user prefs
Browse files Browse the repository at this point in the history
  • Loading branch information
thomascube committed Nov 19, 2012
1 parent fa98198 commit f27c536
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion program/include/rcube_user.php
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ function save_prefs($a_user_prefs)

// 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]);
}

Expand Down

0 comments on commit f27c536

Please sign in to comment.