MDL-33063 course: Reuse get_all_sections()

This commit is contained in:
Aaron Barnes
2012-05-17 15:40:03 +12:00
parent aa753ac24f
commit 66b494771f
+1 -1
View File
@@ -1066,7 +1066,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);