From 694a909d209a3aaf02724833af848be33e93fe07 Mon Sep 17 00:00:00 2001 From: jakubvrana Date: Thu, 2 Oct 2008 14:13:58 +0000 Subject: [PATCH] Drop table doesn't return result set git-svn-id: https://adminer.svn.sourceforge.net/svnroot/adminer/trunk@510 7c3ca157-0c34-0410-bff1-cbf682f78f5c --- index.php | 8 ++++++-- lang/cs.inc.php | 1 + 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/index.php b/index.php index bc844d61..1a7e94ba 100644 --- a/index.php +++ b/index.php @@ -140,8 +140,12 @@ if (isset($_GET["download"])) { $result = queries("RENAME TABLE " . implode(", ", $rename)); $message = lang('Tables have been moved.'); } elseif ($result = queries((isset($_POST["optimize"]) ? "OPTIMIZE" : (isset($_POST["check"]) ? "CHECK" : (isset($_POST["repair"]) ? "REPAIR" : (isset($_POST["drop"]) ? "DROP" : "ANALYZE")))) . " TABLE " . implode(", ", array_map('idf_escape', $_POST["tables"])))) { - while ($row = $result->fetch_assoc()) { - $message .= htmlspecialchars("$row[Table]: $row[Msg_text]") . "
"; + if (isset($_POST["drop"])) { + $message = lang('Tables have been dropped.'); + } else { + while ($row = $result->fetch_assoc()) { + $message .= htmlspecialchars("$row[Table]: $row[Msg_text]") . "
"; + } } } query_redirect(queries(), substr($SELF, 0, -1), $message, $result, false, !$result); diff --git a/lang/cs.inc.php b/lang/cs.inc.php index 9c3d3f04..4404439b 100644 --- a/lang/cs.inc.php +++ b/lang/cs.inc.php @@ -204,4 +204,5 @@ $translations = array( 'original' => 'původní', '%d item(s) have been affected.' => array('Byl ovlivněn %d záznam.', 'Byly ovlivněny %d záznamy.', 'Bylo ovlivněno %d záznamů.'), 'whole result' => 'celý výsledek', + 'Tables have been dropped.' => 'Tabulky byla odstraněny.', );