mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-03 04:29:28 +01:00
fixed forced preference with value="0"="No" was shown in preferences dialog for none-forced prefs
This commit is contained in:
parent
238391ee63
commit
5ee25dc26b
@ -292,7 +292,7 @@ class preferences_settings
|
|||||||
foreach($this->settings as $setting)
|
foreach($this->settings as $setting)
|
||||||
{
|
{
|
||||||
if (!is_array($setting)) continue;
|
if (!is_array($setting)) continue;
|
||||||
if ($type != 'forced' && !empty($GLOBALS['egw']->preferences->forced[$appname][$setting['name']]))
|
if ($type != 'forced' && (string)$GLOBALS['egw']->preferences->forced[$appname][$setting['name']] !== '')
|
||||||
{
|
{
|
||||||
continue; // forced preferences are not displayed, unless we edit them
|
continue; // forced preferences are not displayed, unless we edit them
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user