* 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
This commit is contained in:
Ralf Becker 2016-10-04 14:29:31 +02:00
parent cfeacab117
commit 3128fa4761

View File

@ -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