]> git.joonet.de Git - adminer.git/commitdiff
Fix id in databases list
authorJakub Vrana <jakub@vrana.cz>
Fri, 9 Feb 2018 12:34:46 +0000 (13:34 +0100)
committerJakub Vrana <jakub@vrana.cz>
Fri, 9 Feb 2018 12:34:46 +0000 (13:34 +0100)
adminer/include/connect.inc.php

index 19af7e0053c82bd04cfa7b56b1303b88500b88ef..77411adfcad43041d8ff6de97327ae0066ab2161 100644 (file)
@@ -46,7 +46,7 @@ function connect_error() {
                                $root = h(ME) . "db=" . urlencode($db);
                                $id = h("Db-" . $db);
                                echo "<tr" . odd() . ">" . (support("database") ? "<td>" . checkbox("db[]", $db, in_array($db, (array) $_POST["db"]), "", "", "", $id) : "");
-                               echo "<th><a href='$root' id='$db'>" . h($db) . "</a>";
+                               echo "<th><a href='$root' id='$id'>" . h($db) . "</a>";
                                $collation = nbsp(db_collation($db, $collations));
                                echo "<td>" . (support("database") ? "<a href='$root" . ($scheme ? "&amp;ns=" : "") . "&amp;database=' title='" . lang('Alter database') . "'>$collation</a>" : $collation);
                                echo "<td align='right'><a href='$root&amp;schema=' id='tables-" . h($db) . "' title='" . lang('Database schema') . "'>" . ($_GET["dbsize"] ? $tables : "?") . "</a>";