From: jakubvrana Date: Sat, 30 May 2009 09:03:20 +0000 (+0000) Subject: Don't move to a single database X-Git-Tag: v3.0.0~899 X-Git-Url: https://git.joonet.de/?a=commitdiff_plain;h=9a12880427535d678a1c4e311d7e8ddc88773db4;p=adminer.git Don't move to a single database git-svn-id: https://adminer.svn.sourceforge.net/svnroot/adminer/trunk@626 7c3ca157-0c34-0410-bff1-cbf682f78f5c --- 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();