mirror of
https://github.com/vrana/adminer.git
synced 2025-08-08 15:47:00 +02:00
Improve session restarting
git-svn-id: https://adminer.svn.sourceforge.net/svnroot/adminer/trunk@1227 7c3ca157-0c34-0410-bff1-cbf682f78f5c
This commit is contained in:
@@ -220,7 +220,7 @@ function restart_session() {
|
||||
*/
|
||||
function redirect($location, $message = null) {
|
||||
if (isset($message)) {
|
||||
session_start();
|
||||
restart_session();
|
||||
$_SESSION["messages"][] = $message;
|
||||
}
|
||||
header("Location: " . (strlen($location) ? $location : "."));
|
||||
|
Reference in New Issue
Block a user