diff --git a/adminer/include/adminer.inc.php b/adminer/include/adminer.inc.php index 01f1677d..cb86b163 100644 --- a/adminer/include/adminer.inc.php +++ b/adminer/include/adminer.inc.php @@ -996,18 +996,26 @@ bodyLoad('databasesPrint($missing); + $actions = array(); 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 "
\n" . implode("\n", $actions) . "\n" : ""); + if ($in_db) { + if ($tables) { $this->tablesPrint($tables); + } else { + echo "
\n"; } } }