]> git.joonet.de Git - adminer.git/commitdiff
Drop table doesn't return result set
authorjakubvrana <jakubvrana@7c3ca157-0c34-0410-bff1-cbf682f78f5c>
Thu, 2 Oct 2008 14:13:58 +0000 (14:13 +0000)
committerjakubvrana <jakubvrana@7c3ca157-0c34-0410-bff1-cbf682f78f5c>
Thu, 2 Oct 2008 14:13:58 +0000 (14:13 +0000)
git-svn-id: https://adminer.svn.sourceforge.net/svnroot/adminer/trunk@510 7c3ca157-0c34-0410-bff1-cbf682f78f5c

index.php
lang/cs.inc.php

index bc844d61be38de5569c5beae5da8bda90df06021..1a7e94ba5a65210c985ebcd16172e930378a7811 100644 (file)
--- 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]") . "<br />";
+                                       if (isset($_POST["drop"])) {
+                                               $message = lang('Tables have been dropped.');
+                                       } else {
+                                               while ($row = $result->fetch_assoc()) {
+                                                       $message .= htmlspecialchars("$row[Table]: $row[Msg_text]") . "<br />";
+                                               }
                                        }
                                }
                                query_redirect(queries(), substr($SELF, 0, -1), $message, $result, false, !$result);
index 9c3d3f04b4c01d9b52a821048d6592b74efafc1b..4404439b944aa5c0ff9c46ef8adea0ed2111c817 100644 (file)
@@ -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.',
 );