Skip to content

Commit

Permalink
FIX: $dir cannot be null, commenting wrong test
Browse files Browse the repository at this point in the history
  • Loading branch information
altairis-noe committed Dec 12, 2024
1 parent af29a90 commit a1a102b
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -279,9 +279,9 @@ public function write_file($object, $outputlangs, $srctemplatepath = '', $hidede
$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);
Expand Down

0 comments on commit a1a102b

Please sign in to comment.