try to fix phpstan error

This commit is contained in:
Christophe Battarel 2024-12-03 11:56:36 +01:00
parent 9e00b5ec0e
commit 98c8a17666

View file

@ -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;