mirror of
https://github.com/moodle/moodle.git
synced 2025-01-19 14:27:22 +01:00
d863419245
Move the fixups for orphan courses to the newly minted fix_coursecategory_orphans() -- and optimise it to take only 1 dbquery for the common case. If we do find lots of orphans, we issue 2 updates per orphan. This cuts down dbqueries drastically - we used to have 2x the number of courses in the site.