mirror of
https://github.com/snipe/snipe-it.git
synced 2025-01-29 14:41:35 -08:00
no checked out to email doesnt trigger a 500
This commit is contained in:
parent
5522def054
commit
f7c1fc852d
|
@ -307,7 +307,7 @@ class CheckoutableListener
|
|||
return $event->checkedOutTo->manager?->email ?? '';
|
||||
}
|
||||
else{
|
||||
return $event->checkedOutTo->email;
|
||||
return $event->checkedOutTo?->email ?? '';
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue