mirror of
https://github.com/moodle/moodle.git
synced 2025-04-22 17:02:03 +02:00
Merge branch 'w41_MDL-35382_m24_reordertest' of git://github.com/skodak/moodle
This commit is contained in:
commit
3b950bab64
@ -70,7 +70,7 @@ class courselib_testcase extends advanced_testcase {
|
||||
$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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user