From 09327efdaf0a735f4132bfad0da1943c098cf562 Mon Sep 17 00:00:00 2001 From: Jakub Vrana Date: Mon, 18 Oct 2010 02:15:13 +0200 Subject: [PATCH] Don't download script with no tables --- adminer/db.inc.php | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/adminer/db.inc.php b/adminer/db.inc.php index 453e0c25..b433c49f 100644 --- a/adminer/db.inc.php +++ b/adminer/db.inc.php @@ -154,7 +154,9 @@ if ($_GET["ns"] !== "") { echo '

' . lang('Create event') . "\n"; } - page_footer(); - echo "\n"; - exit; // page_footer() already called + if ($tables_list) { + page_footer(); + echo "\n"; + exit; // page_footer() already called + } }