]> git.mjollnir.org Git - moodle.git/commit
assignment: count_user_files() no longer creates extraneous dirs (bug#4658)
authormartinlanghoff <martinlanghoff>
Mon, 31 Jul 2006 04:56:58 +0000 (04:56 +0000)
committermartinlanghoff <martinlanghoff>
Mon, 31 Jul 2006 04:56:58 +0000 (04:56 +0000)
commit0ff463ae95199265dc5a2fd692f47af17ae3a0b7
tree7b70f2154ab17e436ca08db8e9445e9519756515
parent51886e2fb40888e79ddf681e5893084d338ceba1
assignment: count_user_files() no longer creates extraneous dirs (bug#4658)

Applied the fix by Samuli.Karevaara, from the bug report - the directory is checked for existence beforehand.
Previously it was created if it didn't exist, then the files within it were counted.

Author: Luke Hudson <luke@catalyst.net.nz>
mod/assignment/lib.php