From abb6fc0ddaa2c816453dbd78abc6335c4d54217d Mon Sep 17 00:00:00 2001
From: martinlanghoff <martinlanghoff>
Date: Wed, 28 Feb 2007 00:06:59 +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 <andrew.walbran@catalyst.net.nz>
---
 admin/oacleanup.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/admin/oacleanup.php b/admin/oacleanup.php
index 7d4cac585f..bc603691fb 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) {
-- 
2.39.5