]> git.joonet.de Git - adminer.git/commitdiff
Jump to first page after deleting all records
authorJakub Vrana <jakub@vrana.cz>
Wed, 27 Mar 2013 02:08:58 +0000 (19:08 -0700)
committerJakub Vrana <jakub@vrana.cz>
Wed, 27 Mar 2013 02:08:58 +0000 (19:08 -0700)
adminer/select.inc.php

index 92771ff59144537c7a4dba232313ad253b954a22..27e845b018c81cc66803531b84bd58101ccd65b5 100644 (file)
@@ -137,7 +137,7 @@ if ($_POST && !$error) {
                                        $message = lang('Item%s has been inserted.', " $last_id");
                                }
                        }
-                       queries_redirect(remove_from_uri(), $message, $result);
+                       queries_redirect(remove_from_uri($_POST["all"] && $_POST["delete"] ? "page" : ""), $message, $result);
                        //! display edit page in case of an error
                } elseif (!$_POST["import"]) { // modify
                        if (!$_POST["val"]) {