From ff14681cf7acb9fd74c63f74f23ab0f38828f436 Mon Sep 17 00:00:00 2001 From: Dan Marsden Date: Wed, 21 Aug 2013 08:54:56 +1200 Subject: [PATCH] fix typo --- locallib.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/locallib.php b/locallib.php index bc57d6c..e09cff9 100644 --- a/locallib.php +++ b/locallib.php @@ -1398,7 +1398,7 @@ function attforblock_upgrade() { // Clear cache for courses with attendances. $attendances = $DB->get_recordset('attendance', array(), '', 'courseid'); foreach ($attendances as $attendance) { - rebuild_course_cache($attendance->courseid, true); + rebuild_course_cache($attendance->course, true); } $attendances->close(); } \ No newline at end of file