]> git.joonet.de Git - adminer.git/commitdiff
Hide Refresh link if it does nothing
authorJakub Vrana <jakub@vrana.cz>
Tue, 4 Mar 2025 18:58:26 +0000 (19:58 +0100)
committerJakub Vrana <jakub@vrana.cz>
Tue, 4 Mar 2025 18:58:26 +0000 (19:58 +0100)
adminer/include/connect.inc.php

index 262285d28629dda5e25752298ce89915a89011e2..15bd79fc10c9dfa4e93d011555887f790298d7cd 100644 (file)
@@ -43,7 +43,7 @@ if (!(DB != "" ? $connection->select_db(DB) : isset($_GET["sql"]) || isset($_GET
                        echo script("mixin(qsl('table'), {onclick: tableClick, ondblclick: partialArg(tableClick, true)});");
                        echo "<thead><tr>"
                                . (support("database") ? "<td>" : "")
-                               . "<th>" . lang('Database') . " - <a href='" . h(ME) . "refresh=1'>" . lang('Refresh') . "</a>"
+                               . "<th>" . lang('Database') . (get_session("dbs") !== null ? " - <a href='" . h(ME) . "refresh=1'>" . lang('Refresh') . "</a>" : "")
                                . "<td>" . lang('Collation')
                                . "<td>" . lang('Tables')
                                . "<td>" . lang('Size') . " - <a href='" . h(ME) . "dbsize=1'>" . lang('Compute') . "</a>" . script("qsl('a').onclick = partial(ajaxSetHtml, '" . js_escape(ME) . "script=connect');", "")