From 748e20f0069b4cd8536e2bf6da09068d071c18b8 Mon Sep 17 00:00:00 2001 From: martinlanghoff Date: Wed, 28 Feb 2007 00:07:22 +0000 Subject: [PATCH] Fixing 1.5->1.7 upgrade bug (get_courses was used unnecessarily in upgrade process, and relies on roles) Author: Andrew Walbran --- admin/oacleanup.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/admin/oacleanup.php b/admin/oacleanup.php index 7d4cac585f2..bc603691fb6 100644 --- a/admin/oacleanup.php +++ b/admin/oacleanup.php @@ -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) {