mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-02-20 13:46:52 +01:00
FIX: $dir cannot be null, commenting wrong test
This commit is contained in:
parent
af29a9095b
commit
a1a102b4e4
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user