Don't redirect if there are errors.
This commit is contained in:
parent
1d223ae0e5
commit
b385909298
1 changed files with 1 additions and 1 deletions
|
@ -392,7 +392,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'POST') {
|
|||
}
|
||||
}
|
||||
|
||||
if (!empty($_POST['user']) && !empty($_SERVER['HTTP_REFERER'])) {
|
||||
if (empty($settingsErrors) && !empty($_POST['user']) && !empty($_SERVER['HTTP_REFERER'])) {
|
||||
header('Location: /profile.php?u=' . ((int)($_POST['user'] ?? 0)));
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue