MDL-24636 File API: Fixed calculation of the number of current files when merging with the draft area
This commit is contained in:
+1
-1
@@ -677,7 +677,7 @@ function file_save_draft_area_files($draftitemid, $contextid, $component, $filea
|
||||
}
|
||||
// unchanged file or directory - we keep it as is
|
||||
unset($newhashes[$oldhash]);
|
||||
if (!$file->is_directory()) {
|
||||
if (!$oldfile->is_directory()) {
|
||||
$filecount++;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user