mirror of
https://github.com/vrana/adminer.git
synced 2025-08-09 08:06:59 +02:00
Save select data by AJAX
This commit is contained in:
@@ -345,7 +345,7 @@ function redirect($location, $message = null) {
|
||||
restart_session();
|
||||
$_SESSION["messages"][] = $message;
|
||||
}
|
||||
if (isset($location)) {
|
||||
if (isset($location) && $_SERVER["HTTP_X_REQUESTED_WITH"] != "XMLHttpRequest") {
|
||||
header("Location: " . ($location != "" ? $location : "."));
|
||||
exit;
|
||||
}
|
||||
|
Reference in New Issue
Block a user