fix syslog on device overview (duh, missing argument!)

git-svn-id: http://www.observium.org/svn/observer/trunk@2342 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
Adam Amstrong 2011-05-17 21:24:04 +00:00
parent 9827420195
commit 131ab8ec72

View File

@ -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("<div style='background-color: #eeeeee; margin: 5px; padding: 5px;'>");