Fix redirect back to user mgmt when editing user 0. Fixes #8920

(cherry picked from commit e2f60597df)
This commit is contained in:
jim-p 2018-09-19 13:52:09 -04:00
parent 8b70d0fbaf
commit cc175f70bb

View File

@ -525,7 +525,7 @@ if ($_POST['save']) {
write_config();
}
if ($userid && !$input_errors) {
if ((isset($userid) && is_numeric($userid)) && !$input_errors) {
post_redirect("system_usermanager.php", array('act' => 'edit', 'userid' => $userid));
exit;
}