From 527dbb0c5cc710eb272ef85c3a9f20a4a56156b2 Mon Sep 17 00:00:00 2001 From: Marc Delisle Date: Thu, 15 Nov 2007 13:33:35 +0000 Subject: [PATCH] [display] Division by zero when showing all records (page selector) --- ChangeLog | 1 + libraries/display_tbl.lib.php | 11 +++++++---- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/ChangeLog b/ChangeLog index 6a8a439e5..0f4d3637b 100644 --- a/ChangeLog +++ b/ChangeLog @@ -23,6 +23,7 @@ $HeadURL: https://phpmyadmin.svn.sourceforge.net/svnroot/phpmyadmin/trunk/phpMyA - bug #1789988 [display] space before SHOW COLUMNS - bug #1831646 [table creation] Error in CREATE TABLE with multiple primary keys and AUTO_INCREMENT +- [display] Division by zero when showing all records (page selector) 2.11.2.1 (2007-11-11) - fixed possible SQL injection using database name diff --git a/libraries/display_tbl.lib.php b/libraries/display_tbl.lib.php index 22b0a89e6..c7046b587 100644 --- a/libraries/display_tbl.lib.php +++ b/libraries/display_tbl.lib.php @@ -355,10 +355,12 @@ onsubmit="return (checkFormElementInRange(this, 'session_max_rows', ' 1){ //if1 + if ($nbTotalPage > 1){ //if2 ?>     @@ -385,10 +387,11 @@ onsubmit="return (checkFormElementInRange(this, 'session_max_rows', '