mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-15 00:54:41 +00:00
dashboard: fix crash report on system log widget
This commit is contained in:
parent
271966ede9
commit
617f7f43d5
@ -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'];
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user