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);