From f7d458788033eb98621964c0bfaf50e4680bd519 Mon Sep 17 00:00:00 2001 From: Jakub Vrana Date: Mon, 18 Oct 2010 07:38:23 +0200 Subject: [PATCH] Hide SQL command link in case of an error --- adminer/include/adminer.inc.php | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) 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";