From 3128fa47612e072c1c9c6b02af5af21fd09fe08f Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Tue, 4 Oct 2016 14:29:31 +0200 Subject: [PATCH] * Admin: show "check ip address of all sessions": No (it was stored but always shown as Yes) Caused by "" being deleted when stored and not set === null value picked first option Yes, now we send "" for a not set value to client-side --- admin/inc/class.admin_config.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/admin/inc/class.admin_config.inc.php b/admin/inc/class.admin_config.inc.php index 84af3c86a9..de58c3d782 100644 --- a/admin/inc/class.admin_config.inc.php +++ b/admin/inc/class.admin_config.inc.php @@ -162,7 +162,7 @@ class admin_config preg_match_all('/id="newsettings\[([^]]+)\]"/', file_get_contents($path), $matches, PREG_PATTERN_ORDER); foreach($matches[1] as $name) { - $content['newsettings'][$name] = $config[$name]; + $content['newsettings'][$name] = isset($config[$name]) ? $config[$name] : ''; } // make everything readonly and remove save/apply button, if user has not rights to store config