diff --git a/AUTHORS.md b/AUTHORS.md index ae9e3baff2..9ec1f27f33 100644 --- a/AUTHORS.md +++ b/AUTHORS.md @@ -90,6 +90,7 @@ LibreNMS contributors: - Georges Dick (GeorgesDick) - Richard Lawley (richardlawley) - Marco Di Cerbo (marcodc) +- David Bell (geordish) [1]: http://observium.org/ "Observium web site" Observium was written by: diff --git a/html/includes/table/syslog.inc.php b/html/includes/table/syslog.inc.php index 987aac65a1..11c2b9ce73 100644 --- a/html/includes/table/syslog.inc.php +++ b/html/includes/table/syslog.inc.php @@ -1,6 +1,7 @@ = '5') { $sql .= ' WHERE '.$where; } else { - $sql = 'FROM syslog AS S, devices_perms AS P'; - $sql .= 'WHERE S.device_id = P.device_id AND P.user_id = ?'; + $sql = 'FROM syslog AS S, devices_perms AS P '; + $sql .= 'WHERE S.device_id = P.device_id AND P.user_id = ? AND '; $sql .= $where; $param = array_merge(array($_SESSION['user_id']), $param); }