From fc3eaefc3f84cf4e977d4f3cc8b2fbf96555cc2a Mon Sep 17 00:00:00 2001 From: slawkens Date: Fri, 30 Jan 2026 23:00:41 +0100 Subject: [PATCH] Fix exception when email cannot be send on create account --- system/pages/createaccount.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/system/pages/createaccount.php b/system/pages/createaccount.php index f16ed753..8707a22d 100644 --- a/system/pages/createaccount.php +++ b/system/pages/createaccount.php @@ -232,8 +232,9 @@ if($save) } 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(); + return; } } else