Skip to content

Commit

Permalink
MDL-34529: Fixed ordering of course sections when performing import/r…
Browse files Browse the repository at this point in the history
…estore by adding the sort parameter.
  • Loading branch information
Jason Ilicic authored and stronk7 committed Aug 20, 2012
1 parent 4cb18cb commit b3e10b8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backup/util/dbops/backup_plan_dbops.class.php
Expand Up @@ -112,7 +112,7 @@ public static function get_sections_from_courseid($courseid) {

// Get all sections belonging to requested course
$sectionsarr = array();
$sections = $DB->get_records('course_sections', array('course' => $courseid));
$sections = $DB->get_records('course_sections', array('course' => $courseid), 'section');
foreach ($sections as $section) {
$sectionsarr[] = $section->id;
}
Expand Down

0 comments on commit b3e10b8

Please sign in to comment.