From 50528be5cb4a1ec82b1060f53b74073d9de3855f Mon Sep 17 00:00:00 2001 From: Jakub Vrana Date: Tue, 26 Mar 2013 19:08:58 -0700 Subject: [PATCH] Jump to first page after deleting all records --- adminer/select.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/adminer/select.inc.php b/adminer/select.inc.php index 92771ff5..27e845b0 100644 --- a/adminer/select.inc.php +++ b/adminer/select.inc.php @@ -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"]) {