From 2415e3ebbbecfced553cb40a06b51da538dc5446 Mon Sep 17 00:00:00 2001 From: mdtrooper Date: Thu, 3 Jun 2010 08:12:47 +0000 Subject: [PATCH] 2010-06-03 Miguel de Dios * operation/snmpconsole/snmp_view.php: fixed a typo mistake in SQL query. Fixes: #3010543 git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2853 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f --- pandora_console/ChangeLog | 5 +++++ pandora_console/operation/snmpconsole/snmp_view.php | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/pandora_console/ChangeLog b/pandora_console/ChangeLog index 28e9cf5ab3..359bc1f62e 100644 --- a/pandora_console/ChangeLog +++ b/pandora_console/ChangeLog @@ -1,3 +1,8 @@ +2010-06-03 Miguel de Dios + + * operation/snmpconsole/snmp_view.php: fixed a typo mistake in SQL query. + Fixes: #3010543 + 2010-06-02 Miguel de Dios * operation/reporting/reporting_xml.php: sorry I lost commit the changes to diff --git a/pandora_console/operation/snmpconsole/snmp_view.php b/pandora_console/operation/snmpconsole/snmp_view.php index 11f779043f..d554cccbcc 100644 --- a/pandora_console/operation/snmpconsole/snmp_view.php +++ b/pandora_console/operation/snmpconsole/snmp_view.php @@ -147,7 +147,7 @@ foreach ($traps as $trap) { $sql = "SELECT * FROM ttrap %s ORDER BY timestamp DESC LIMIT %d,%d"; $whereSubquery = 'WHERE 1=1'; if ($filter_agent != '') - $whereSubquery .= ' AND source LIKE "' . $filter_agent . "'"; + $whereSubquery .= ' AND source LIKE "' . $filter_agent . '"'; if ($filter_oid != '') { //Test if install the enterprise to search oid in text or oid field in ttrap.