MDL-37028 fixed statement to clear course cache

This commit is contained in:
Marina Glancy
2013-09-11 14:57:59 +10:00
parent 9054c04d45
commit cfda8732b7
+1 -1
View File
@@ -103,7 +103,7 @@ foreach ($courses as $courseid) {
if ($errors) {
if (!empty($options['fix'])) {
// Reset the course cache to make sure cache is recalculated next time the course is viewed.
$DB->upgrade_record('course', array('modinfo' => null, 'id' => $courseid));
rebuild_course_cache($courseid, true);
}
foreach ($errors as $error) {
cli_problem($error);