MDL-67945 enrol: missing $DB in edit_instance_form

This commit is contained in:
Anthony Forth
2020-02-26 16:34:38 +01:00
committed by Ferran Recio
parent 7b37466710
commit c47d17b93b
+1 -1
View File
@@ -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) {