MDL-67945 enrol: missing $DB in edit_instance_form
This commit is contained in:
committed by
Ferran Recio
parent
d077ffd3a5
commit
cb2a49009c
+1
-1
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user