Merge branch 'MDL-43200' of git://github.com/apsdehal/moodle

This commit is contained in:
Sam Hemelryk 2014-02-10 14:11:25 +13:00
commit 1cb3c0facc

View File

@ -109,6 +109,7 @@ class enrol_manual_external extends external_api {
}
// Check manual enrolment plugin instance is enabled/exist.
$instance = null;
$enrolinstances = enrol_get_instances($enrolment['courseid'], true);
foreach ($enrolinstances as $courseenrolinstance) {
if ($courseenrolinstance->enrol == "manual") {