Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Unset null values in user prefs

  • Loading branch information...
commit f27c536401cee253fd59f58cf391dffe0f9c6bfc 1 parent fa98198
@thomascube thomascube authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  program/include/rcube_user.php
View
2  program/include/rcube_user.php
@@ -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]);
}
Please sign in to comment.
Something went wrong with that request. Please try again.