diff --git a/app/Abstracts/Notification.php b/app/Abstracts/Notification.php index a9ab9aabf..9e8d0c752 100644 --- a/app/Abstracts/Notification.php +++ b/app/Abstracts/Notification.php @@ -146,7 +146,8 @@ abstract class Notification extends BaseNotification implements ShouldQueue $new_vars = []; foreach ($vars as $var) { - $new_vars[] = preg_quote($var); + // Ensure $var is a string, default to an empty string if it is null + $new_vars[] = preg_quote($var ?? ''); } return $new_vars;