mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-14 00:24:40 +00:00
fix crashreport, when syslog section is unset for some reason, save can trigger warnings like "PHP Warning: Illegal string offset 'disable_clog' in /usr/local/www/diag_logs_settings.php on line 92"
This commit is contained in:
parent
be13b6f9e3
commit
d16642cea6
@ -89,6 +89,9 @@ if ($_SERVER['REQUEST_METHOD'] === 'GET') {
|
||||
}
|
||||
|
||||
if (count($input_errors) == 0) {
|
||||
if (empty($config['syslog'])) {
|
||||
$config['syslog'] = array();
|
||||
}
|
||||
$config['syslog']['disable_clog'] = !empty($pconfig['disable_clog']);
|
||||
if (isset($_POST['logfilesize']) && (strlen($pconfig['logfilesize']) > 0)) {
|
||||
$config['syslog']['logfilesize'] = (int)$pconfig['logfilesize'];
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user