If no default is set, show nothing for default

This commit is contained in:
Nathan Gray 2013-11-27 15:52:28 +00:00
parent 6e88374e6f
commit 60a9286f0a

View File

@ -370,7 +370,8 @@ class preferences_settings
$GLOBALS['egw']->preferences->group[$appname][$setting['name']] : $GLOBALS['egw']->preferences->group[$appname][$setting['name']] :
$GLOBALS['egw']->preferences->default[$appname][$setting['name']]; $GLOBALS['egw']->preferences->default[$appname][$setting['name']];
if (isset($setting['values']) && !is_array($default) && (string)$setting['values'][$default] !== '') if (isset($setting['values']) && !is_array($default) &&
(string)$setting['values'][$default] !== '' && (string)$default !== '')
{ {
if(is_array($setting['values'][$default])) if(is_array($setting['values'][$default]))
{ {