From: Jakub Vrana Date: Mon, 18 Oct 2010 05:38:23 +0000 (+0200) Subject: Hide SQL command link in case of an error X-Git-Tag: v3.0.1~1 X-Git-Url: https://git.joonet.de/?a=commitdiff_plain;h=f7d458788033eb98621964c0bfaf50e4680bd519;p=adminer.git Hide SQL command link in case of an error --- diff --git a/adminer/include/adminer.inc.php b/adminer/include/adminer.inc.php index fd5956d7..c0c0a011 100644 --- a/adminer/include/adminer.inc.php +++ b/adminer/include/adminer.inc.php @@ -523,10 +523,14 @@ document.getElementById('username').focus(); ?>

- - -"> - +" . bold(lang('SQL command'), isset($_GET["sql"])) . "\n"; + if (support("dump")) { + echo "" . bold(lang('Dump'), isset($_GET["dump"])) . "\n"; + } +} +?>

@@ -544,7 +548,7 @@ document.getElementById('username').focus(); set_schema($_GET["ns"]); } } - if ($_GET["ns"] !== "" && $missing != "ns") { + if ($_GET["ns"] !== "" && !$missing) { $tables = tables_list(); if (!$tables) { echo "

" . lang('No tables.') . "\n";