mirror of
https://github.com/snipe/snipe-it.git
synced 2024-12-25 05:34:06 -08:00
Hotfix: the checkin_email does not exist on consumable. (#5891)
This commit is contained in:
parent
a0c0b7b1eb
commit
351274c633
|
@ -80,7 +80,7 @@ class CheckoutConsumableNotification extends Notification
|
|||
/**
|
||||
* Send an email if an email should be sent at checkin/checkout
|
||||
*/
|
||||
if ($this->item->checkin_email()) {
|
||||
if ((method_exists($this->item, 'checkin_email')) && ($this->item->checkin_email())) {
|
||||
$notifyBy[1] = 'mail';
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue