Permalink
Browse files

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

…ak/moodle
  • Loading branch information...
2 parents f374702 + 3a222db commit 3b950bab64205500653fe47044ff6d16a44a388f @stronk7 stronk7 committed Oct 8, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 course/tests/courselib_test.php
@@ -70,7 +70,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 3b950ba

Please sign in to comment.