fixed bug in uninstall_all_courses
Merge pull request #224 from swirldev/uninstall_all_courses

fixed bug in uninstall_all_courses