From 635b627ca00b6592dc57d44bd2c4ecac25e1c11f Mon Sep 17 00:00:00 2001 From: zarzuelo Date: Fri, 13 Aug 2010 09:14:43 +0000 Subject: [PATCH] 2010-08-13 Sergio Martin * operation/snmpconsole/snmp_view.php: Fixed the pagination block filter in the SNMP console git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3140 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f --- pandora_console/ChangeLog | 5 +++++ pandora_console/operation/snmpconsole/snmp_view.php | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/pandora_console/ChangeLog b/pandora_console/ChangeLog index f78963a592..7f9dd0ea8f 100644 --- a/pandora_console/ChangeLog +++ b/pandora_console/ChangeLog @@ -1,3 +1,8 @@ +2010-08-13 Sergio Martin + + * operation/snmpconsole/snmp_view.php: Fixed the pagination + block filter in the SNMP console + 2010-08-13 Sergio Martin * extensions/agents_modules.php: Aligned vertically the modules diff --git a/pandora_console/operation/snmpconsole/snmp_view.php b/pandora_console/operation/snmpconsole/snmp_view.php index 8aade76269..e9da663366 100644 --- a/pandora_console/operation/snmpconsole/snmp_view.php +++ b/pandora_console/operation/snmpconsole/snmp_view.php @@ -109,7 +109,7 @@ if (isset ($_POST["updatebt"])) { } } -$sql = sprintf ("SELECT * FROM ttrap ORDER BY timestamp DESC LIMIT %d,%d",$offset,$config['block_size']); +$sql = sprintf ("SELECT * FROM ttrap ORDER BY timestamp DESC LIMIT %d,%d",$offset,$pagination); $traps = get_db_all_rows_sql ($sql); // No traps @@ -175,7 +175,7 @@ $whereSubquery = 'WHERE 1=1'; $whereSubquery .= ' AND status = ' . $filter_status; -$sql = sprintf($sql, $whereSubquery, $offset, $config['block_size']); +$sql = sprintf($sql, $whereSubquery, $offset, $pagination); $traps = get_db_all_rows_sql($sql);