Hotfix: the checkin_email does not exist on consumable. (#5891)

This commit is contained in:
Daniel Meltzer 2018-07-19 13:38:50 -04:00 committed by snipe
parent a0c0b7b1eb
commit 351274c633

View file

@ -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';
}