From 8099b8eb4cb1ab77ea59fef4da2839543456866e Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Mon, 20 Jan 2014 17:51:46 +0000 Subject: [PATCH] fixed forced, but empty multiselect was stored as empty string and therefore overwrote user prefs --- preferences/inc/class.preferences_settings.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/preferences/inc/class.preferences_settings.inc.php b/preferences/inc/class.preferences_settings.inc.php index 123b993cd5..c0a335fc53 100644 --- a/preferences/inc/class.preferences_settings.inc.php +++ b/preferences/inc/class.preferences_settings.inc.php @@ -218,7 +218,7 @@ class preferences_settings break; } - if (isset($value) && $value !== '' && $value !== '**NULL**') + if (isset($value) && $value !== '' && $value !== '**NULL**' && $value !== array()) { if (is_array($value)) $value = implode(',',$value); // multiselect