put file name in ''

This commit is contained in:
Uwe Steinmann 2024-04-28 14:40:39 +02:00
parent 2107955b7e
commit 1edb468877

View File

@ -870,7 +870,7 @@ function insert_document($document) { /* {{{ */
if($newfile) { if($newfile) {
$newfile->setDate(dateToTimestamp($file['attributes']['date'])); $newfile->setDate(dateToTimestamp($file['attributes']['date']));
} else { } else {
$logger->err("File ".$file['attributes']['name']." could not be added."); $logger->err("File '".$file['attributes']['name']."' could not be added.");
} }
unlink($filename); unlink($filename);
} }