do not even try to remove a checked out file if it doesn't exist anymore

This commit is contained in:
Uwe Steinmann 2022-11-09 13:33:18 +01:00
parent 3e733b91cd
commit b8449289ac

View File

@ -1202,7 +1202,7 @@ class SeedDMS_Core_Document extends SeedDMS_Core_Object { /* {{{ */
$db->rollbackTransaction();
return false;
}
if(!SeedDMS_Core_File::removeFile($info['filename'])) {
if(file_exists($info['filename']) && !SeedDMS_Core_File::removeFile($info['filename'])) {
$db->rollbackTransaction();
return false;
}