mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-02-06 15:14:58 +00:00
do not even try to remove a checked out file if it doesn't exist anymore
This commit is contained in:
parent
3e733b91cd
commit
b8449289ac
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user