add nullsafe

This commit is contained in:
spencerrlongg 2025-01-29 11:27:02 -06:00
parent fd60ce1198
commit 0defed9abe

View file

@ -156,7 +156,7 @@ class CheckoutableListener
$ccEmails = array_filter($adminCcEmailsArray);
$mailable = $this->getCheckinMailType($event);
$notifiable = $this->getNotifiables($event);
if ($event->checkedOutTo->locale){
if ($event->checkedOutTo?->locale) {
$mailable->locale($event->checkedOutTo->locale);
}
// Send email notifications