From c47d17b93bb944d98b236a3e3ecd63c5ec6283b2 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 65b14403f77..f5beff88f19 100644 --- a/enrol/self/lib.php +++ b/enrol/self/lib.php @@ -716,7 +716,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) {