FIX: $dir cannot be null, commenting wrong test

This commit is contained in:
Noé Cendrier 2024-12-12 14:34:49 +01:00
parent af29a9095b
commit a1a102b4e4

View File

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