diff --git a/index.php b/index.php index 1c71dcef..baf9db57 100644 --- a/index.php +++ b/index.php @@ -183,8 +183,11 @@ if (isset($_GET["download"])) { } echo "\n"; echo "

\n"; - $db = (isset($_POST["target"]) ? $_POST["target"] : $_GET["db"]); - echo "

" . lang('Move to other database') . (get_databases() ? ": " : ': ') . "

\n"; + $dbs = get_databases(); + if (count($dbs) != 1) { + $db = (isset($_POST["target"]) ? $_POST["target"] : $_GET["db"]); + echo "

" . lang('Move to other database') . ($dbs ? ": " : ': ') . "

\n"; + } echo "\n"; } $result->free();