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

This commit is contained in:
Jason Ilicic
2012-08-20 14:00:26 +02:00
committed by Eloy Lafuente (stronk7)
parent c6d7689621
commit 3f7df55d1c
@@ -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;
}