Fixed null detection

This commit is contained in:
Josef Citrine 2016-08-28 00:40:25 +01:00
parent 555aa35c34
commit 5311577aa2

View file

@ -151,7 +151,7 @@ class Activity extends Model {
public function getThumbnailUrlAttribute() public function getThumbnailUrlAttribute()
{ {
if (!is_null($this->resource)) if (is_null($this->resource))
return "/images/icons/profile_small.png"; return "/images/icons/profile_small.png";
switch ($this->resource_type) { switch ($this->resource_type) {