MDL-34529: Fixed ordering of course sections when performing import/restore by adding the sort parameter.

This commit is contained in:
Jason Ilicic 2012-07-25 10:20:16 +09:30 committed by Eloy Lafuente (stronk7)
parent 4cb18cb080
commit b3e10b89e9

View File

@ -112,7 +112,7 @@ abstract class backup_plan_dbops extends backup_dbops {
// 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;
}