Update pdf_standard_myobject.modules.php

This commit is contained in:
Christophe Battarel 2024-12-05 16:47:34 +01:00 committed by GitHub
parent d34250c6e5
commit 5340f9f8c5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -263,8 +263,10 @@ class pdf_standard_myobject extends ModelePDFMyObject
*/
//if (count($realpatharray) == 0) $this->posxpicture=$this->posxtva;
$dir_output = getMultidirOutput($object, $object->module) . '/' . $object->element;
$dir_output = getMultidirOutput($object, $object->module);
if (!empty($dir_output)) {
$dir_output .= '/' . $object->element;
$object->fetch_thirdparty();
$dir = null;