From a1a102b4e4ba92fd1b674cc7aa96c19c87bac5db Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?No=C3=A9=20Cendrier?= Date: Thu, 12 Dec 2024 14:34:49 +0100 Subject: [PATCH] FIX: $dir cannot be null, commenting wrong test --- .../modules/mymodule/doc/pdf_standard_myobject.modules.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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 3e9bfac76cf..1f227a8be10 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 @@ -279,9 +279,9 @@ class pdf_standard_myobject extends ModelePDFMyObject $dir = $dir_output."/".$objectref; $file = $dir."/".$objectref.".pdf"; } - if ($dir === null) { - return 0; - } + // if ($dir === null) { + // return 0; + // } if (!file_exists($dir)) { if (dol_mkdir($dir) < 0) { $this->error = $langs->transnoentities("ErrorCanNotCreateDir", $dir);