fix wrong function call

This commit is contained in:
Uwe Steinmann 2024-04-28 13:48:10 +02:00
parent 59309b7db8
commit 2ded968aa3

View File

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