]> git.joonet.de Git - adminer.git/commitdiff
Use drop_tables()
authorJakub Vrana <jakub@vrana.cz>
Wed, 3 Jul 2013 19:32:52 +0000 (12:32 -0700)
committerJakub Vrana <jakub@vrana.cz>
Wed, 3 Jul 2013 19:32:52 +0000 (12:32 -0700)
adminer/create.inc.php

index c58c7ea4c92eb3f67fd77a361d1800ed1b215912..1cba9db36e1d7456c037e798115d32ad30fd1bed 100644 (file)
@@ -26,7 +26,7 @@ if ($row["auto_increment_col"]) {
 
 if ($_POST && !process_fields($row["fields"]) && !$error) {
        if ($_POST["drop"]) {
-               query_redirect("DROP TABLE " . table($TABLE), substr(ME, 0, -1), lang('Table has been dropped.'));
+               queries_redirect(substr(ME, 0, -1), lang('Table has been dropped.'), drop_tables(array($TABLE)));
        } else {
                $fields = array();
                $all_fields = array();