Preferences - Fix sections missing under some circumstances

This commit is contained in:
nathangray 2019-01-10 15:54:04 -07:00
parent 03aa34460a
commit 00c11c1a0c

View File

@ -381,7 +381,7 @@ class preferences_settings
foreach($this->settings as $setting)
{
if (!is_array($setting)) continue;
if ($type != 'forced' && (string)$GLOBALS['egw']->preferences->forced[$appname][$setting['name']] !== '')
if ($type != 'forced' && $setting['name'] && (string)$GLOBALS['egw']->preferences->forced[$appname][$setting['name']] !== '')
{
continue; // forced preferences are not displayed, unless we edit them
}