Correctly handle 'Apply changes' for email addresses.

Previously have applying a change, the screen would be refreshed
and the email address would still be getting edited. This correctly
refreshes the screen to show that the email address editing is finished.
This commit is contained in:
Andrew Ruthven 2021-02-25 22:28:15 +13:00
parent d788bca04a
commit 172e96a322

View File

@ -529,7 +529,7 @@ function email_row_editor() {
$emailrow->Assign('email', $email);
$emailrow->Assign('main', $_POST['main']);
$emailrow->Write( );
unset($_GET['email']);
unset($_GET['edit_email']);
}
elseif ( isset($_GET['delete_email']) ) {
$qry = new AwlQuery("DELETE FROM usr_emails WHERE user_no=:user_no AND email = :email",