From 3f5edbdfa3b09d48b4bfd8dde8eea775d6b16e79 Mon Sep 17 00:00:00 2001 From: moodler Date: Tue, 19 Sep 2006 07:08:19 +0000 Subject: [PATCH] If the search and replace affected course->modinfo then courses may not work, so clear the cache --- admin/replace.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/admin/replace.php b/admin/replace.php index 35e2507140..643607f02d 100644 --- a/admin/replace.php +++ b/admin/replace.php @@ -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'); -- 2.39.5