From 5ee25dc26b629f75315c62ac9e17fe7c0ec1acb4 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Mon, 20 Jan 2014 11:07:36 +0000 Subject: [PATCH] fixed forced preference with value="0"="No" was shown in preferences dialog for none-forced 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 54cd854637..123b993cd5 100644 --- a/preferences/inc/class.preferences_settings.inc.php +++ b/preferences/inc/class.preferences_settings.inc.php @@ -292,7 +292,7 @@ class preferences_settings foreach($this->settings as $setting) { 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 }