From ade67941ac56d685fb4ae4686a46ae13473730d9 Mon Sep 17 00:00:00 2001 From: Tom Laermans Date: Fri, 23 Sep 2011 14:36:37 +0000 Subject: [PATCH] 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 --- html/pages/device/overview.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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("
"); echo("

Recent Syslog

");