]> git.mjollnir.org Git - moodle.git/commitdiff
Fixing 1.5->1.7 upgrade bug (get_courses was used unnecessarily in upgrade process...
authormartinlanghoff <martinlanghoff>
Wed, 28 Feb 2007 00:06:59 +0000 (00:06 +0000)
committermartinlanghoff <martinlanghoff>
Wed, 28 Feb 2007 00:06:59 +0000 (00:06 +0000)
Author: Andrew Walbran <andrew.walbran@catalyst.net.nz>

admin/oacleanup.php

index 7d4cac585f225b4e587336cddebc97b38f22bfd8..bc603691fb66c9c5705d6ee5daa4c00dadf3a73e 100644 (file)
@@ -46,7 +46,7 @@ function online_assignment_cleanup($output=false) {
 
 
     /// get a list of all courses on this site
-    $courses = get_courses();
+    $courses = get_records('course');
 
     /// cycle through each course
     foreach ($courses as $course) {