1
0
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:
Jakub Vrana
2010-10-17 07:50:40 +02:00
parent 8d4b241156
commit a6bbe1bb3b
3 changed files with 20 additions and 10 deletions

View File

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