From 131ab8ec722d3a0b7f932aa5ffe855494a9ce4a9 Mon Sep 17 00:00:00 2001 From: Adam Amstrong Date: Tue, 17 May 2011 21:24:04 +0000 Subject: [PATCH] fix syslog on device overview (duh, missing argument!) git-svn-id: http://www.observium.org/svn/observer/trunk@2342 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 eb79d2906..fdc3ceaa3 100644 --- a/html/pages/device/overview.inc.php +++ b/html/pages/device/overview.inc.php @@ -60,7 +60,7 @@ if ($services['total']) ### FIXME - split this into overview/syslog.inc.php? -$syslog = dbFetchRows("SELECT *, DATE_FORMAT(timestamp, '%d/%b/%y %T') AS date from syslog WHERE device_id = ? ORDER BY timestamp DESC LIMIT 20"); +$syslog = dbFetchRows("SELECT *, DATE_FORMAT(timestamp, '%d/%b/%y %T') AS date from syslog WHERE device_id = ? ORDER BY timestamp DESC LIMIT 20", array($device['device_id'])); if (is_array($syslog)) { echo("
");