question bank MDL-24312 problem when deleting a course with orphaned categories.
authorTim Hunt <T.J.Hunt@open.ac.uk>
Mon, 8 Nov 2010 15:55:45 +0000 (15:55 +0000)
committerTim Hunt <T.J.Hunt@open.ac.uk>
Mon, 8 Nov 2010 15:55:45 +0000 (15:55 +0000)
commit855f9c3930c1abe65776d5f8e04b73e7a290e408
tree47e02c8365c47c07e6cc51179f3546605f60f3ea
parent4673212416ea540f34a3a72ba8b2277a43fe2a85
question bank MDL-24312 problem when deleting a course with orphaned categories.

When there was a question category whose parent had somehow been deleted from the question bank, while the child category was still there, then that gave an error because a DB query was still referring to the question_categories.courese coloumn, that was changed to contextid in moodle 1.9.

Fix thanks to Mahmoud Kassaei.
lib/questionlib.php