diff --git a/inc/abstractitiltarget.class.php b/inc/abstractitiltarget.class.php index 50e91c11d..a1a5fbf75 100644 --- a/inc/abstractitiltarget.class.php +++ b/inc/abstractitiltarget.class.php @@ -2331,7 +2331,7 @@ protected function prepareUploadedFiles(array $data): array { foreach (PluginFormcreatorCommon::getDocumentsFromTag($data['content']) as $document) { $prefix = uniqid('', true); $filename = $prefix . 'image_paste.' . pathinfo($document['filename'], PATHINFO_EXTENSION); - if (!copy(GLPI_DOC_DIR . '/' . $document['filepath'], GLPI_TMP_DIR . '/' . $filename)) { + if (!@copy(GLPI_DOC_DIR . '/' . $document['filepath'], GLPI_TMP_DIR . '/' . $filename)) { continue; }