Skip to content

Commit 3a683d8

Browse files
authored
Merge pull request #15859 from Godmartinz/remove_name_null_warning
Adds a ternary for blank emails for mail notifications
2 parents e05f443 + f7c1fc8 commit 3a683d8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/Listeners/CheckoutableListener.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -307,7 +307,7 @@ private function getNotifiables($event){
307307
return $event->checkedOutTo->manager?->email ?? '';
308308
}
309309
else{
310-
return $event->checkedOutTo->email;
310+
return $event->checkedOutTo?->email ?? '';
311311
}
312312
}
313313

0 commit comments

Comments
 (0)