From 6657a34ff09eb8c28f254b703f66caef43e77e6a Mon Sep 17 00:00:00 2001 From: BitKFu Date: Tue, 25 Apr 2023 19:07:35 +0200 Subject: [PATCH] use dol_is_file instead of file_exists --- htdocs/core/class/commonobject.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/core/class/commonobject.class.php b/htdocs/core/class/commonobject.class.php index a214c98d0ce..7d2e90f593e 100644 --- a/htdocs/core/class/commonobject.class.php +++ b/htdocs/core/class/commonobject.class.php @@ -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 {