Fix exception when email cannot be send on create account

This commit is contained in:
slawkens
2026-01-30 23:00:41 +01:00
parent fcf2b14921
commit fc3eaefc3f

View File

@@ -232,8 +232,9 @@ if($save)
} }
else else
{ {
error('An error occorred while sending email! Account not created. Try again. For Admin: More info can be found in system/logs/mailer-error.log'); error('An error occurred while sending email! Account not created. Try again. For Admin: More info can be found in system/logs/mailer-error.log');
$new_account->delete(); $new_account->delete();
return;
} }
} }
else else