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