diff --git a/adminer/edit.inc.php b/adminer/edit.inc.php index 8864cc29..597a7445 100644 --- a/adminer/edit.inc.php +++ b/adminer/edit.inc.php @@ -11,7 +11,7 @@ foreach ($fields as $name => $field) { if ($_POST && !$error && !isset($_GET["select"])) { $location = $_POST["referer"]; if ($_POST["insert"]) { // continue edit or insert - $location = ($update ? ME . "&edit=" . urlencode($TABLE) . unique_idf($_POST["fields"] + (array) $_GET["where"], indexes($TABLE)) : $_SERVER["REQUEST_URI"]); //! doesn't work with functions + $location = ($update ? ME . "&edit=" . urlencode($TABLE) . unique_idf($_POST["fields"] + $_GET["where"], indexes($TABLE)) : $_SERVER["REQUEST_URI"]); //! doesn't work with functions } elseif (!ereg('^.+&select=.+$', $location)) { $location = ME . "select=" . urlencode($TABLE); $i = 0; // append &set converted to &where