Commit 617f7f43 authored by Franco Fichtner's avatar Franco Fichtner

dashboard: fix crash report on system log widget

parent 271966ed
......@@ -32,10 +32,7 @@ require_once("pfsense-utils.inc");
$system_logfile = '/var/log/system.log';
if (!$config['widgets']['systemlogfiltercount']){
$syslogEntriesToFetch = $config['syslog']['nentries'];
if (!$syslogEntriesToFetch) {
$syslogEntriesToFetch = 20;
}
$syslogEntriesToFetch = isset($config['syslog']['nentries']) ? $config['syslog']['nentries'] : 20;
} else {
$syslogEntriesToFetch = $config['widgets']['systemlogfiltercount'];
}
......
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