From 5d311ef2d990be5803b6783e82602e9e1d9cc7b4 Mon Sep 17 00:00:00 2001 From: jakubvrana Date: Fri, 19 Jun 2009 19:17:38 +0000 Subject: [PATCH] Comment git-svn-id: https://adminer.svn.sourceforge.net/svnroot/adminer/trunk@728 7c3ca157-0c34-0410-bff1-cbf682f78f5c --- adminer/select.inc.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/adminer/select.inc.php b/adminer/select.inc.php index 10e65074..b9c2374a 100644 --- a/adminer/select.inc.php +++ b/adminer/select.inc.php @@ -287,7 +287,10 @@ if (!$columns) { echo "\n"; echo "

"; - $found_rows = (intval($limit) ? $dbh->result($dbh->query(count($group) < count($select) ? " SELECT FOUND_ROWS()" : "SELECT COUNT(*) FROM " . idf_escape($_GET["select"]) . ($where ? " WHERE " . implode(" AND ", $where) : ""))) : $result->num_rows); + $found_rows = (intval($limit) ? $dbh->result($dbh->query(count($group) < count($select) + ? " SELECT FOUND_ROWS()" // space to allow mysql.trace_mode + : "SELECT COUNT(*) FROM " . idf_escape($_GET["select"]) . ($where ? " WHERE " . implode(" AND ", $where) : "") + )) : $result->num_rows); if (intval($limit) && $found_rows > $limit) { $max_page = floor(($found_rows - 1) / $limit); echo lang('Page') . ":";