Skip to content

An open-source, self-hostable PaaS alternative to Vercel, Heroku & Netlify that lets you easily deploy static sites, databases, full-stack applications and 360+ one-click services on your own servers.

fix: missing $mailMessage

Andras Bacsaia4a653603e3e
diff --git a/app/Notifications/Channels/EmailChannel.php b/app/Notifications/Channels/EmailChannel.php
index cd6dc4b569..7a0ee2c0c4 100644
--- a/app/Notifications/Channels/EmailChannel.php
+++ b/app/Notifications/Channels/EmailChannel.php
@@ -34,7 +34,9 @@ class EmailChannel
if (isset($recepients)) {
$message .= implode(', ', $recepients);
}
- $message .= " with subject: {$mailMessage->subject}";
+ if (isset($mailMessage)) {
+ $message .= " with subject: {$mailMessage->subject}";
+ }
send_internal_notification($message);
throw $e;
}