Type check on custom fields

This commit is contained in:
= 2021-03-13 19:36:00 +11:00
parent 2ebba998cc
commit e2bc086f75

View File

@ -289,7 +289,7 @@ trait DesignHelpers
return ''; return '';
} }
if (!property_exists($this->client->company->custom_fields, $field)) { if ($this->client->company->custom_fields && !property_exists($this->client->company->custom_fields, $field)) {
return ''; return '';
} }