From 1e310977b6fc4a0f2868f815c860a6e04b87f819 Mon Sep 17 00:00:00 2001 From: Jakub Vrana Date: Wed, 30 Jan 2013 21:55:25 -0800 Subject: [PATCH] Display information for processing no tables --- adminer/db.inc.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/adminer/db.inc.php b/adminer/db.inc.php index fc0a4853..fb065d6b 100644 --- a/adminer/db.inc.php +++ b/adminer/db.inc.php @@ -32,7 +32,9 @@ if ($tables_views && !$error && !$_POST["search"]) { : apply_queries("VACUUM" . ($_POST["optimize"] ? "" : " ANALYZE"), $_POST["tables"]) ); $message = lang('Tables have been optimized.'); - } elseif ($_POST["tables"] && ($result = queries(($_POST["optimize"] ? "OPTIMIZE" : ($_POST["check"] ? "CHECK" : ($_POST["repair"] ? "REPAIR" : "ANALYZE"))) . " TABLE " . implode(", ", array_map('idf_escape', $_POST["tables"]))))) { + } elseif (!$_POST["tables"]) { + $message = lang('No tables.'); + } elseif ($result = queries(($_POST["optimize"] ? "OPTIMIZE" : ($_POST["check"] ? "CHECK" : ($_POST["repair"] ? "REPAIR" : "ANALYZE"))) . " TABLE " . implode(", ", array_map('idf_escape', $_POST["tables"])))) { while ($row = $result->fetch_assoc()) { $message .= "" . h($row["Table"]) . ": " . h($row["Msg_text"]) . "
"; }