From 3ac3f6006c31da05b93582444614faec76c46c66 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Benjamin=20Beganovi=C4=87?= Date: Fri, 11 Sep 2020 16:46:49 +0200 Subject: [PATCH] footer logic for custom props --- app/Services/PdfMaker/Design.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/Services/PdfMaker/Design.php b/app/Services/PdfMaker/Design.php index 953db989b..1a64d205e 100644 --- a/app/Services/PdfMaker/Design.php +++ b/app/Services/PdfMaker/Design.php @@ -234,9 +234,9 @@ class Design extends BaseDesign $variable = sprintf('%s%s', '$', $property); if ( - !is_null($this->entity->{$property}) || - !empty($this->entity->{$property}) || - $this->entity->{$property} !== 0 + !is_null($this->entity->{$property}) && + !empty($this->entity->{$property}) && + $this->entity->{$property} != 0 ) { continue; }