From 705d4ef94275091402ab4ed912772f0b3cc136a0 Mon Sep 17 00:00:00 2001 From: Daniel Supernault Date: Thu, 14 Feb 2019 14:22:46 -0700 Subject: [PATCH] Update NotificationTransformer --- app/Transformer/Api/NotificationTransformer.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Transformer/Api/NotificationTransformer.php b/app/Transformer/Api/NotificationTransformer.php index a621891d1..ce1ae74cf 100644 --- a/app/Transformer/Api/NotificationTransformer.php +++ b/app/Transformer/Api/NotificationTransformer.php @@ -31,7 +31,7 @@ class NotificationTransformer extends Fractal\TransformerAbstract public function includeStatus(Notification $notification) { $item = $notification->item; - if(get_class($item) === 'App\Status') { + if(is_object($item) && get_class($item) === 'App\Status') { return $this->item($item, new StatusTransformer()); } else { return null;