Skip to content

Commit

Permalink
MDL-43200 WebServices: Reset Instance variable
Browse files Browse the repository at this point in the history
  • Loading branch information
apsdehal authored and Sam Hemelryk committed Feb 10, 2014
1 parent d97c8c3 commit 1f45af2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions enrol/manual/externallib.php
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -109,6 +109,7 @@ public static function enrol_users($enrolments) {
} }


// Check manual enrolment plugin instance is enabled/exist. // Check manual enrolment plugin instance is enabled/exist.
$instance = null;
$enrolinstances = enrol_get_instances($enrolment['courseid'], true); $enrolinstances = enrol_get_instances($enrolment['courseid'], true);
foreach ($enrolinstances as $courseenrolinstance) { foreach ($enrolinstances as $courseenrolinstance) {
if ($courseenrolinstance->enrol == "manual") { if ($courseenrolinstance->enrol == "manual") {
Expand Down

0 comments on commit 1f45af2

Please sign in to comment.