From 9b7c56ed0d38597009adfe59d0db98aabd93201a Mon Sep 17 00:00:00 2001 From: Marina Glancy Date: Thu, 13 Aug 2015 12:28:55 +0800 Subject: [PATCH] MDL-51095 enrol_meta: add missing include Thanks to Shaun Meyer for providing a patch --- enrol/meta/locallib.php | 1 + 1 file changed, 1 insertion(+) diff --git a/enrol/meta/locallib.php b/enrol/meta/locallib.php index c9c8013129b..08c50c806ed 100644 --- a/enrol/meta/locallib.php +++ b/enrol/meta/locallib.php @@ -80,6 +80,7 @@ class enrol_meta_handler { */ protected static function sync_with_parent_course(stdClass $instance, $userid) { global $DB, $CFG; + require_once($CFG->dirroot . '/group/lib.php'); $plugin = enrol_get_plugin('meta');