From 485b6397d02b60fa1a78fcd563068a1e447d1028 Mon Sep 17 00:00:00 2001 From: snipe Date: Wed, 11 Oct 2017 14:42:11 -0700 Subject: [PATCH] Possible (crummy temp) fix for #4165 --- app/Notifications/CheckoutNotification.php | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/app/Notifications/CheckoutNotification.php b/app/Notifications/CheckoutNotification.php index 187f6f9e44..e365e8a7ae 100644 --- a/app/Notifications/CheckoutNotification.php +++ b/app/Notifications/CheckoutNotification.php @@ -45,13 +45,12 @@ class CheckoutNotification extends Notification $item = $this->params['item']; if (class_basename(get_class($this->params['item']))=='Asset') { - $notifyBy[] = 'mail'; + if ((method_exists($item, 'requireAcceptance') && ($item->requireAcceptance() == '1')) + || (method_exists($item, 'getEula') && ($item->getEula())) + ) { + $notifyBy[] = 'mail'; + } } - // if ((method_exists($item, 'requireAcceptance') && ($item->requireAcceptance()=='1')) - // || (method_exists($item, 'getEula') && ($item->getEula())) - // ) { - // $notifyBy[] = 'mail'; - // } return $notifyBy; }