diff --git a/adminer/include/adminer.inc.php b/adminer/include/adminer.inc.php index d1193e9c..ccdc267b 100644 --- a/adminer/include/adminer.inc.php +++ b/adminer/include/adminer.inc.php @@ -1079,20 +1079,32 @@ bodyLoad(' databasesPrint($missing); + + $actions = []; if (DB == "" || !$missing) { - echo "

" . lang('No tables.') . "\n"; - } else { + $actions[] = '" . lang('Create table') . "\n"; + } + if ($actions) { + echo "

"; + } + + if ($_GET["ns"] !== "" && !$missing && DB != "") { + if ($tables) { $this->printTablesFilter(); $this->tablesPrint($tables); + } else { + echo "

" . lang('No tables.') . "

\n"; } } }