]> git.joonet.de Git - adminer.git/commitdiff
Don't download tables count without databases list
authorJakub Vrana <jakub@vrana.cz>
Sun, 17 Oct 2010 23:48:27 +0000 (01:48 +0200)
committerJakub Vrana <jakub@vrana.cz>
Sun, 17 Oct 2010 23:48:27 +0000 (01:48 +0200)
adminer/include/connect.inc.php

index a222dd73e52b0a180f6b5dd55086405805e73d77..840b11e8545b851973c9facfc9737aa24eafb897 100644 (file)
@@ -43,7 +43,9 @@ function connect_error() {
                }
        }
        page_footer("db");
-       echo "<script type='text/javascript' src='" . h(ME . "script=connect&token=$token") . "'></script>\n";
+       if ($databases) {
+               echo "<script type='text/javascript' src='" . h(ME . "script=connect&token=$token") . "'></script>\n";
+       }
 }
 
 if (isset($_GET["status"])) {