From cb2a49009ccc8c1f7e7b2fd96197ede7e76cdc1f Mon Sep 17 00:00:00 2001 From: Anthony Forth Date: Wed, 12 Feb 2020 12:26:16 +0000 Subject: [PATCH] MDL-67945 enrol: missing $DB in edit_instance_form --- enrol/self/lib.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) {