]> git.mjollnir.org Git - moodle.git/commit
datalib: fix_course_sortorder() - minor optimisation
authormartinlanghoff <martinlanghoff>
Wed, 19 Sep 2007 07:27:08 +0000 (07:27 +0000)
committermartinlanghoff <martinlanghoff>
Wed, 19 Sep 2007 07:27:08 +0000 (07:27 +0000)
commitc5d13b689f39ccd32b184b551da6835fb33f5b21
treed03259ce38a4245fd15844cf1c6605b4247809ae
parent4dde1463ee439c493bc811662eac329b5deab049
datalib: fix_course_sortorder() - minor optimisation

Don't update fields unnecessarily. Cuts 3 DB queries per category
on course/index page (45 in a 15 category setup).

fix_course_sortorder() should be fixed to avoid recursion.
lib/datalib.php