mirror of
https://github.com/moodle/moodle.git
synced 2025-03-18 22:50:19 +01:00
MDL-24636 File API: Fixed calculation of the number of current files when merging with the draft area
This commit is contained in:
parent
8dfb8a0343
commit
d9ba4bd6ad
@ -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++;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user