only show syslog on device overview when enable_syslog=1

git-svn-id: http://www.observium.org/svn/observer/trunk@2727 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
Tom Laermans
2011-11-16 21:05:55 +00:00
parent 32793c1658
commit 7bb1827628
+3
View File
@@ -59,6 +59,8 @@ if ($services['total'])
}
### FIXME - split this into overview/syslog.inc.php?
if ($config['enable_syslog'])
{
$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 (count($syslog))
{
@@ -69,6 +71,7 @@ if (count($syslog))
echo("</table>");
echo("</div>");
}
}
echo("</td>");