Skip to content

Commit

Permalink
MDL-67945 enrol: missing $DB in edit_instance_form
Browse files Browse the repository at this point in the history
  • Loading branch information
anthonyforth authored and ferranrecio committed Feb 26, 2020
1 parent 37b2ee3 commit bcc3a46
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion enrol/self/lib.php
Original file line number Diff line number Diff line change
Expand Up @@ -716,7 +716,7 @@ public function get_bulk_operations(course_enrolment_manager $manager) {
* @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) {
Expand Down

0 comments on commit bcc3a46

Please sign in to comment.