diff --git a/html/pages/device/overview.inc.php b/html/pages/device/overview.inc.php index bb0e54d054..755c5fa4f3 100644 --- a/html/pages/device/overview.inc.php +++ b/html/pages/device/overview.inc.php @@ -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("
Recent Syslog