Merge branch 'MDL-33063' of git://github.com/srynot4sale/moodle

This commit is contained in:
Dan Poltawski 2012-05-24 20:32:31 +08:00
commit 108526897d

View File

@ -1070,7 +1070,7 @@ function get_array_of_activities($courseid) {
return $mod; // always return array
}
if ($sections = $DB->get_records("course_sections", array("course"=>$courseid), "section ASC")) {
if ($sections = get_all_sections($courseid)) {
foreach ($sections as $section) {
if (!empty($section->sequence)) {
$sequence = explode(",", $section->sequence);