diff --git a/enrol/self/lib.php b/enrol/self/lib.php index 0f5d84435b0..ad05a2cd61d 100644 --- a/enrol/self/lib.php +++ b/enrol/self/lib.php @@ -714,7 +714,7 @@ class enrol_self_plugin extends enrol_plugin { * @return bool */ public function edit_instance_form($instance, MoodleQuickForm $mform, $context) { - global $CFG; + global $CFG, $DB; // Merge these two settings to one value for the single selection element. if ($instance->notifyall and $instance->expirynotify) {