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 "
" . (support("sql") ? "" . lang('SQL command') . "\n" . lang('Import') . "\n" : "") . ""; + if (support("sql")) { + $actions[] = "" . lang('SQL command') . ""; + $actions[] = "" . lang('Import') . ""; + } if (support("dump")) { - echo "" . lang('Export') . "\n"; + $actions[] = "" . lang('Export') . ""; } } if ($_GET["ns"] !== "" && !$missing && DB != "") { - echo '" . lang('Create table') . "\n"; - if (!$tables) { - echo "
" . implode("\n", $actions) . "
"; + } + + if ($_GET["ns"] !== "" && !$missing && DB != "") { + if ($tables) { $this->printTablesFilter(); $this->tablesPrint($tables); + } else { + echo " \n"; } } }