From 9a12880427535d678a1c4e311d7e8ddc88773db4 Mon Sep 17 00:00:00 2001 From: jakubvrana Date: Sat, 30 May 2009 09:03:20 +0000 Subject: [PATCH] Don't move to a single database git-svn-id: https://adminer.svn.sourceforge.net/svnroot/adminer/trunk@626 7c3ca157-0c34-0410-bff1-cbf682f78f5c --- index.php | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) 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();