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