diff --git a/lib/weblib.php b/lib/weblib.php index b5c2c59029c..a9ca3d10cdb 100644 --- a/lib/weblib.php +++ b/lib/weblib.php @@ -2440,13 +2440,14 @@ function update_course_icon($courseid) { * @todo Finish documenting this function */ function update_module_button($moduleid, $courseid, $string) { - global $CFG; + global $CFG, $USER; if (isteacheredit($courseid)) { $string = get_string('updatethis', '', $string); return "
"; } else { return '';