diff --git a/Sources/Subs-Compat.php b/Sources/Subs-Compat.php index 9d64c615b5..5caee8e8ee 100644 --- a/Sources/Subs-Compat.php +++ b/Sources/Subs-Compat.php @@ -8470,8 +8470,7 @@ function serverParse(string $message, $socket, string $code, ?string &$response try { $o = new SMF\MailAgent\APIs\SMTP(); $o->compatServerParse($message, $socket, $code, $response); - } - catch (\Throwable $e) { + } catch (\Throwable $e) { return false; } } @@ -9207,12 +9206,10 @@ function smtp_mail(array $mail_to_array, string $subject, string $message, strin $agent->disconnect(); - return $result - } - catch (\Throwable $e) { + return $result; + } catch (\Throwable $e) { return false; - } - finally { + } finally { Config::$modSettings['mail_type'] = $old; } }