From b783b9487d76a909b90a52fb1ceec4dc7f67b5c1 Mon Sep 17 00:00:00 2001
From: Jakub Vrana
Date: Wed, 8 Aug 2012 08:41:52 -0700
Subject: [PATCH] Don't display tables list on server pages
---
adminer/include/adminer.inc.php | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/adminer/include/adminer.inc.php b/adminer/include/adminer.inc.php
index e551f673..791170f8 100644
--- a/adminer/include/adminer.inc.php
+++ b/adminer/include/adminer.inc.php
@@ -821,7 +821,7 @@ DROP PROCEDURE adminer_alter;
: (isset($_GET["dump"]) ? ''
: "")));
echo "
\n";
- if ($_GET["ns"] !== "" && !$missing) {
+ if ($_GET["ns"] !== "" && !$missing && DB != "") {
echo '" . lang('Create new table') . "\n";
$tables = tables_list();
if (!$tables) {