mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-05-14 05:31:42 +00:00
Merge branch 'seeddms-5.1.x' into seeddms-6.0.x
This commit is contained in:
commit
da69c19a1a
|
@ -867,7 +867,11 @@ function insert_document($document) { /* {{{ */
|
||||||
$file['attributes']['version'],
|
$file['attributes']['version'],
|
||||||
$file['attributes']['public']
|
$file['attributes']['public']
|
||||||
);
|
);
|
||||||
$newfile->setDate(dateToTimestamp($file['attributes']['date']));
|
$d = dateToTimestamp($file['attributes']['date']);
|
||||||
|
if($d)
|
||||||
|
$newfile->setDate($d);
|
||||||
|
else
|
||||||
|
$logger->warning("File date (".$file['attributes']['date'].") could not be parsed.");
|
||||||
unlink($filename);
|
unlink($filename);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user