2
0
forked from Wavyzz/dolibarr

use dol_is_file instead of file_exists

This commit is contained in:
BitKFu
2023-04-25 19:07:35 +02:00
parent 799f8c5d12
commit 6657a34ff0

View File

@@ -5673,7 +5673,7 @@ abstract class CommonObject
// Check that the file exists, before indexing it.
// Hint: It does not exist, if we create a PDF and auto delete the ODT File
if (file_exists($destfull)) {
if (dol_is_file($destfull)) {
$this->indexFile($destfull, $update_main_doc_field);
}
} else {