]> git.joonet.de Git - adminer.git/commitdiff
Comment
authorjakubvrana <jakubvrana@7c3ca157-0c34-0410-bff1-cbf682f78f5c>
Fri, 19 Jun 2009 19:17:38 +0000 (19:17 +0000)
committerjakubvrana <jakubvrana@7c3ca157-0c34-0410-bff1-cbf682f78f5c>
Fri, 19 Jun 2009 19:17:38 +0000 (19:17 +0000)
git-svn-id: https://adminer.svn.sourceforge.net/svnroot/adminer/trunk@728 7c3ca157-0c34-0410-bff1-cbf682f78f5c

adminer/select.inc.php

index 10e650742fb0bb4c39f0d499ece71b866d52b62b..b9c2374a0d84a44519586f17677371848f650063 100644 (file)
@@ -287,7 +287,10 @@ if (!$columns) {
                        echo "</table>\n";
                        
                        echo "<p>";
-                       $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') . ":";