1
0
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:
jakubvrana
2010-04-15 14:59:40 +00:00
parent 186c05898f
commit 9bb1909fcf
2 changed files with 6 additions and 4 deletions

View File

@@ -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