From 98c8a1766689dca350bbfbba7a7162952eace589 Mon Sep 17 00:00:00 2001 From: Christophe Battarel Date: Tue, 3 Dec 2024 11:56:36 +0100 Subject: [PATCH] try to fix phpstan error --- .../core/modules/mymodule/doc/pdf_standard_myobject.modules.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/modulebuilder/template/core/modules/mymodule/doc/pdf_standard_myobject.modules.php b/htdocs/modulebuilder/template/core/modules/mymodule/doc/pdf_standard_myobject.modules.php index 90eeab74229..c24df9a986e 100644 --- a/htdocs/modulebuilder/template/core/modules/mymodule/doc/pdf_standard_myobject.modules.php +++ b/htdocs/modulebuilder/template/core/modules/mymodule/doc/pdf_standard_myobject.modules.php @@ -264,7 +264,7 @@ class pdf_standard_myobject extends ModelePDFMyObject //if (count($realpatharray) == 0) $this->posxpicture=$this->posxtva; $dir_output = getMultidirOutput($object, $object->module) . '/' . $object->element; - if ($dir_output) { + if (!empty($dir_output)) { $object->fetch_thirdparty(); $dir = null;