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.', );