Skip to content
Browse files

Merge branch 'MDL-29618_21' of git://github.com/stronk7/moodle into M…

…OODLE_21_STABLE
  • Loading branch information...
2 parents e58c72d + 77be201 commit bd90c5891fe89b426f5e51da4d30f5538182b416 @samhemelryk samhemelryk committed
Showing with 2 additions and 2 deletions.
  1. +1 −1 backup/moodle2/backup_course_task.class.php
  2. +1 −1 backup/moodle2/restore_course_task.class.php
View
2 backup/moodle2/backup_course_task.class.php
@@ -73,7 +73,7 @@ public function build() {
$this->add_step(new backup_course_structure_step('course_info', 'course.xml'));
// Generate the enrolment file (conditionally, prevent it in any IMPORT/HUB operation)
- if (!$this->plan->get_mode() == backup::MODE_IMPORT && !$this->plan->get_mode() == backup::MODE_HUB) {
+ if ($this->plan->get_mode() != backup::MODE_IMPORT && $this->plan->get_mode() != backup::MODE_HUB) {
$this->add_step(new backup_enrolments_structure_step('course_enrolments', 'enrolments.xml'));
}
View
2 backup/moodle2/restore_course_task.class.php
@@ -70,7 +70,7 @@ public function build() {
$this->add_step(new restore_ras_and_caps_structure_step('course_ras_and_caps', 'roles.xml'));
// Restore course enrolments (plugins and membership). Conditionally prevented for any IMPORT/HUB operation
- if (!$this->plan->get_mode() == backup::MODE_IMPORT && !$this->plan->get_mode() == backup::MODE_HUB) {
+ if ($this->plan->get_mode() != backup::MODE_IMPORT && $this->plan->get_mode() != backup::MODE_HUB) {
$this->add_step(new restore_enrolments_structure_step('course_enrolments', 'enrolments.xml'));
}

0 comments on commit bd90c58

Please sign in to comment.
Something went wrong with that request. Please try again.