Permalink
Browse files

MDL-29618 backup - back to handling enrolments properly. Regession of…

… MDL-26841, my fault, grrr
  • Loading branch information...
stronk7 committed Oct 2, 2011
1 parent 3973662 commit 77be201a0fb600d7676d8721c199645f24a30552
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
@@ -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'));
}
@@ -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 77be201

Please sign in to comment.