Commit 54fb4abe authored by Franco Fichtner's avatar Franco Fichtner

logs: fix a crash report

(cherry picked from commit fcafea09)
parent 802e1d78
...@@ -113,7 +113,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'GET') { ...@@ -113,7 +113,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'GET') {
$pconfig['logbogons'] = empty($config['syslog']['nologbogons']); $pconfig['logbogons'] = empty($config['syslog']['nologbogons']);
$pconfig['logprivatenets'] = empty($config['syslog']['nologprivatenets']); $pconfig['logprivatenets'] = empty($config['syslog']['nologprivatenets']);
$pconfig['loglighttpd'] = empty($config['syslog']['nologlighttpd']); $pconfig['loglighttpd'] = empty($config['syslog']['nologlighttpd']);
$pconfig['filterdescriptions'] = $config['syslog']['filterdescriptions']; $pconfig['filterdescriptions'] = !empty($config['syslog']['filterdescriptions']) ? $config['syslog']['filterdescriptions'] : null;
$pconfig['disablelocallogging'] = isset($config['syslog']['disablelocallogging']); $pconfig['disablelocallogging'] = isset($config['syslog']['disablelocallogging']);
$pconfig['logfilesize'] = !empty($config['syslog']['logfilesize']) ? $config['syslog']['logfilesize'] : null; $pconfig['logfilesize'] = !empty($config['syslog']['logfilesize']) ? $config['syslog']['logfilesize'] : null;
} elseif ($_SERVER['REQUEST_METHOD'] === 'POST') { } elseif ($_SERVER['REQUEST_METHOD'] === 'POST') {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment