mirror of
https://github.com/vrana/adminer.git
synced 2025-08-18 04:11:27 +02:00
Fix Save and continue edit
git-svn-id: https://adminer.svn.sourceforge.net/svnroot/adminer/trunk@1443 7c3ca157-0c34-0410-bff1-cbf682f78f5c
This commit is contained in:
@@ -217,7 +217,7 @@ function restart_session() {
|
||||
}
|
||||
|
||||
/** Send Location header and exit
|
||||
* @param string
|
||||
* @param string null to only set a message
|
||||
* @param string
|
||||
* @return null
|
||||
*/
|
||||
@@ -226,8 +226,10 @@ function redirect($location, $message = null) {
|
||||
restart_session();
|
||||
$_SESSION["messages"][] = $message;
|
||||
}
|
||||
header("Location: " . ($location != "" ? $location : "."));
|
||||
exit;
|
||||
if (isset($location)) {
|
||||
header("Location: " . ($location != "" ? $location : "."));
|
||||
exit;
|
||||
}
|
||||
}
|
||||
|
||||
/** Execute query and redirect if successful
|
||||
|
Reference in New Issue
Block a user