Skip to content
This repository has been archived by the owner on Apr 8, 2022. It is now read-only.

Commit

Permalink
Revert "Merge branch 'MDL-43127-master-fixup' of https://github.com/F…
Browse files Browse the repository at this point in the history
…MCorz/moodle"

This reverts commit 7bd7808, reversing
changes made to 1e7e4d5.
  • Loading branch information
danpoltawski committed Nov 27, 2014
1 parent e7087cb commit e6f5a4b
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
5 changes: 1 addition & 4 deletions admin/tool/uploadcourse/classes/helper.php
Original file line number Diff line number Diff line change
Expand Up @@ -164,10 +164,7 @@ public static function get_enrolment_data($data, &$errors = array()) {
if (!empty($enrolmethods)) {
$enrolmentplugins = self::get_enrolment_plugins();
foreach ($enrolmethods as $key => $method) {
if (empty($method)) {
// The enrolment method is not specified, we skip it.
continue;
} else if (!array_key_exists($method, $enrolmentplugins)) {
if (!array_key_exists($method, $enrolmentplugins)) {
// Unknown enrolment method.
$unknownmethods[] = $method;
continue;
Expand Down
1 change: 0 additions & 1 deletion admin/tool/uploadcourse/tests/helper_test.php
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,6 @@ public function test_get_enrolment_data() {
'enrolment_5_test2' => 'test2',
'enrolment_5_test1' => 'test1',
'enrolment_5' => 'flatfile',
'enrolment_6' => '',
);
$expected = array(
'self' => array(
Expand Down

0 comments on commit e6f5a4b

Please sign in to comment.