mirror of
https://github.com/vrana/adminer.git
synced 2025-08-16 19:44:00 +02:00
Don't duplicate no rows
git-svn-id: https://adminer.svn.sourceforge.net/svnroot/adminer/trunk@1181 7c3ca157-0c34-0410-bff1-cbf682f78f5c
This commit is contained in:
@@ -75,8 +75,8 @@ if (!$error && $_POST) {
|
|||||||
select($result, $connection2);
|
select($result, $connection2);
|
||||||
if ($connection2 && preg_match("~^$space*SELECT$space+~isU", $q)) {
|
if ($connection2 && preg_match("~^$space*SELECT$space+~isU", $q)) {
|
||||||
$id = "explain-$explain";
|
$id = "explain-$explain";
|
||||||
echo "<p>" . lang('%d row(s)', $result->num_rows);
|
echo "<p>" . ($result->num_rows ? lang('%d row(s)', $result->num_rows) . ", " : "");
|
||||||
echo ", <a href='#$id' onclick=\"return !toggle('$id');\">EXPLAIN</a>\n";
|
echo "<a href='#$id' onclick=\"return !toggle('$id');\">EXPLAIN</a>\n";
|
||||||
echo "<div id='$id' class='hidden'>\n";
|
echo "<div id='$id' class='hidden'>\n";
|
||||||
select($connection2->query("EXPLAIN $q"), $connection2);
|
select($connection2->query("EXPLAIN $q"), $connection2);
|
||||||
echo "</div>\n";
|
echo "</div>\n";
|
||||||
|
Reference in New Issue
Block a user