MDL-24636 File API: Fixed calculation of the number of current files when merging with the draft area

This commit is contained in:
David Mudrak 2010-10-12 14:56:01 +00:00
parent 8dfb8a0343
commit d9ba4bd6ad

View File

@ -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++;
}
}