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:
jakubvrana 2009-10-10 17:03:19 +00:00
parent 67584771dc
commit 881d968ef3

View file

@ -75,8 +75,8 @@ if (!$error && $_POST) {
select($result, $connection2);
if ($connection2 && preg_match("~^$space*SELECT$space+~isU", $q)) {
$id = "explain-$explain";
echo "<p>" . lang('%d row(s)', $result->num_rows);
echo ", <a href='#$id' onclick=\"return !toggle('$id');\">EXPLAIN</a>\n";
echo "<p>" . ($result->num_rows ? lang('%d row(s)', $result->num_rows) . ", " : "");
echo "<a href='#$id' onclick=\"return !toggle('$id');\">EXPLAIN</a>\n";
echo "<div id='$id' class='hidden'>\n";
select($connection2->query("EXPLAIN $q"), $connection2);
echo "</div>\n";