mirror of
https://github.com/vrana/adminer.git
synced 2025-08-10 16:44:17 +02:00
Minimize the chance of displaying message on different page (thanks to Tomas Brukner)
This commit is contained in:
@@ -349,7 +349,7 @@ function drop_create($drop, $create, $location, $message_drop, $message_alter, $
|
||||
$created = queries($create);
|
||||
if (!queries_redirect($location, ($name != "" ? $message_alter : $message_create), $created) && $dropped) {
|
||||
restart_session();
|
||||
$_SESSION["messages"][] = $message_drop;
|
||||
$_SESSION["messages"][preg_replace('~^[^?]*/~', '', $_SERVER["REQUEST_URI"])][] = $message_drop;
|
||||
}
|
||||
return $dropped;
|
||||
}
|
||||
|
Reference in New Issue
Block a user