fixed forced, but empty multiselect was stored as empty string and therefore overwrote user prefs

This commit is contained in:
Ralf Becker 2014-01-20 17:51:46 +00:00
parent 2123b7cbbf
commit 8099b8eb4c

View File

@ -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