From 5311577aa28b5600fdf37816843ced71343a1810 Mon Sep 17 00:00:00 2001 From: Josef Citrine Date: Sun, 28 Aug 2016 00:40:25 +0100 Subject: [PATCH] Fixed null detection --- app/Models/Activity.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Models/Activity.php b/app/Models/Activity.php index 4fcdebda..83ff01ef 100644 --- a/app/Models/Activity.php +++ b/app/Models/Activity.php @@ -151,7 +151,7 @@ class Activity extends Model { public function getThumbnailUrlAttribute() { - if (!is_null($this->resource)) + if (is_null($this->resource)) return "/images/icons/profile_small.png"; switch ($this->resource_type) {