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') . ":";