Skip to content

Commit

Permalink
MDL-21432 backup - fix for section and activity restore
Browse files Browse the repository at this point in the history
  • Loading branch information
stronk7 committed Jul 28, 2010
1 parent 327f3fd commit 0aa7827
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions backup/moodle2/restore_plan_builder.class.php
Expand Up @@ -79,10 +79,10 @@ static public function build_plan($controller) {

switch ($controller->get_type()) {
case backup::TYPE_1ACTIVITY:
self::build_activity_plan($controller, $controller->get_courseid());
self::build_activity_plan($controller, key($controller->get_info()->activities));
break;
case backup::TYPE_1SECTION:
self::build_section_plan($controller, $controller->get_courseid());
self::build_section_plan($controller, key($controller->get_info()->sections));
break;
case backup::TYPE_1COURSE:
self::build_course_plan($controller, $controller->get_courseid());
Expand Down

0 comments on commit 0aa7827

Please sign in to comment.