If the search and replace affected course->modinfo then courses may not work,

so clear the cache
This commit is contained in:
moodler
2006-09-19 07:08:19 +00:00
parent 92ab23875a
commit 3f5edbdfa3
+4
View File
@@ -49,6 +49,10 @@ foreach ($tables as $table) {
}
}
}
/// Clear course cache which might be corrupted now
execute_sql("UPDATE ".$CFG->prefix."course SET modinfo = '' WHERE id <> ".SITEID);
print_simple_box_end();
print_continue('index.php');