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("