From: martinlanghoff Date: Wed, 19 Sep 2007 07:12:43 +0000 (+0000) Subject: course/unenrol codepaths mark the context dirty - bugfix X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=3d3def3a4e6290c45849243ae72ab1e6aee999ba;p=moodle.git course/unenrol codepaths mark the context dirty - bugfix Oops. one if() branch was missing the mark_context_dirty(). Fixed. --- diff --git a/course/unenrol.php b/course/unenrol.php index 356c8f94b8..4633653123 100644 --- a/course/unenrol.php +++ b/course/unenrol.php @@ -54,6 +54,9 @@ if (! role_unassign(0, $USER->id, 0, $context->id)) { error("An error occurred while trying to unenrol you."); } + + // force accessinfo refresh for users visiting this context... + mark_context_dirty($context->path); add_to_log($course->id, 'course', 'unenrol', "view.php?id=$course->id", $USER->id); redirect($CFG->wwwroot);