mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
don't show syslog header when we don't have log data
git-svn-id: http://www.observium.org/svn/observer/trunk@2564 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
@@ -61,7 +61,7 @@ if ($services['total'])
|
||||
|
||||
### FIXME - split this into overview/syslog.inc.php?
|
||||
$syslog = dbFetchRows("SELECT *, DATE_FORMAT(timestamp, '%Y-%m-%d %T') AS date from syslog WHERE device_id = ? ORDER BY timestamp DESC LIMIT 20", array($device['device_id']));
|
||||
if (is_array($syslog))
|
||||
if (count($syslog))
|
||||
{
|
||||
echo("<div style='background-color: #eeeeee; margin: 5px; padding: 5px;'>");
|
||||
echo("<p style='padding: 0px 5px 5px;' class=sectionhead><img align='absmiddle' src='images/16/printer.png'> Recent Syslog</p>");
|
||||
|
||||
Reference in New Issue
Block a user