From ee0814716a6d56bae26ce59311cfee872645c9ea Mon Sep 17 00:00:00 2001 From: snipe Date: Thu, 9 Nov 2017 13:40:55 -0800 Subject: [PATCH] Only format ecpected checkin date if one exists --- app/Notifications/CheckoutNotification.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Notifications/CheckoutNotification.php b/app/Notifications/CheckoutNotification.php index 8a5512aa91..30dc6fcc5e 100644 --- a/app/Notifications/CheckoutNotification.php +++ b/app/Notifications/CheckoutNotification.php @@ -93,7 +93,7 @@ class CheckoutNotification extends Notification 'first_name' => $target->present()->fullName(), 'item_name' => $item->present()->name(), 'checkout_date' => $item->last_checkout, - 'expected_checkin' => $item->expected_checkin->format('Y-m-d'), + 'expected_checkin' => ($item->expected_checkin) ? $item->expected_checkin->format('Y-m-d') : '', 'item_tag' => $item->asset_tag, 'note' => $this->params['note'], 'item_serial' => $item->serial,