Permalink
Browse files

Merge branch 'w41_MDL-35382_m23_reordertest' of git://github.com/skod…

…ak/moodle into MOODLE_23_STABLE
  • Loading branch information...
2 parents 7516f96 + f31ee12 commit 3e0e4917d8c7647dd433bdf9ba8ac07519555821 @stronk7 stronk7 committed Oct 8, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 course/tests/courselib_test.php
@@ -36,7 +36,7 @@ public function test_reorder_sections() {
$course = $this->getDataGenerator()->create_course(array('numsections'=>10), array('createsections'=>true));
$oldsections = array();
$sections = array();
- foreach ($DB->get_records('course_sections', array('course'=>$course->id)) as $section) {
+ foreach ($DB->get_records('course_sections', array('course'=>$course->id), 'id') as $section) {
$oldsections[$section->section] = $section->id;
$sections[$section->id] = $section->section;
}

0 comments on commit 3e0e491

Please sign in to comment.