restart_session();
$_SESSION["messages"][] = $message;
}
- if (isset($location) && $_SERVER["HTTP_X_REQUESTED_WITH"] != "XMLHttpRequest") {
- header("Location: " . ($location != "" ? $location : "."));
- exit;
+ if (isset($location)) {
+ if ($_SERVER["HTTP_X_REQUESTED_WITH"] != "XMLHttpRequest") {
+ header("Location: " . ($location != "" ? $location : "."));
+ exit;
+ }
+ $_POST = array();
}
}
}
}
$id = h("val[$unique_idf][" . bracket_escape($key) . "]");
- $value = ($error ? $_POST["val"][$unique_idf][bracket_escape($key)] : null);
+ $value = $_POST["val"][$unique_idf][bracket_escape($key)];
$h_value = h(isset($value) ? $value : $row[$key]);
$long = strpos($val, "<i>...</i>");
$editable = is_utf8($val) && !$long && $rows[$n][$key] == $row[$key] && !$functions[$key];