]> git.joonet.de Git - adminer.git/commitdiff
Table-less drivers: Hide Create table link
authorJakub Vrana <jakub@vrana.cz>
Tue, 18 Mar 2025 10:30:31 +0000 (11:30 +0100)
committerJakub Vrana <jakub@vrana.cz>
Tue, 18 Mar 2025 10:35:15 +0000 (11:35 +0100)
adminer/include/adminer.inc.php

index 5d68ca9d84a12a99270642f59539fc488e2a5d78..fa5e7e4cb4478272cea025891279a45ed10bbb63 100644 (file)
@@ -1032,7 +1032,7 @@ class Adminer {
                                $actions[] = "<a href='" . h(ME) . "dump=" . urlencode(isset($_GET["table"]) ? $_GET["table"] : $_GET["select"]) . "' id='dump'" . bold(isset($_GET["dump"])) . ">" . lang('Export') . "</a>";
                        }
                        $in_db = $_GET["ns"] !== "" && !$missing && DB != "";
-                       if ($in_db) {
+                       if ($in_db && support("table")) {
                                $actions[] = '<a href="' . h(ME) . 'create="' . bold($_GET["create"] === "") . ">" . lang('Create table') . "</a>";
                        }
                        echo ($actions ? "<p class='links'>\n" . implode("\n", $actions) . "\n" : "");