diff --git a/app/Services/PdfMaker/Designs/Utilities/DesignHelpers.php b/app/Services/PdfMaker/Designs/Utilities/DesignHelpers.php index c27e68fc3130..9258740c0122 100644 --- a/app/Services/PdfMaker/Designs/Utilities/DesignHelpers.php +++ b/app/Services/PdfMaker/Designs/Utilities/DesignHelpers.php @@ -289,7 +289,7 @@ trait DesignHelpers 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 ''; }