mirror of
https://github.com/vrana/adminer.git
synced 2025-08-08 15:47:00 +02:00
Minimize the chance of displaying message on different page (thanks to Tomas Brukner)
This commit is contained in:
@@ -384,7 +384,7 @@ function is_ajax() {
|
||||
function redirect($location, $message = null) {
|
||||
if (isset($message)) {
|
||||
restart_session();
|
||||
$_SESSION["messages"][] = $message;
|
||||
$_SESSION["messages"][preg_replace('~^[^?]*/~', '', $location)][] = $message;
|
||||
}
|
||||
if (isset($location)) {
|
||||
if ($location == "") {
|
||||
|
Reference in New Issue
Block a user