From 66b494771ffc731472a374bef1b5cd12befd53b2 Mon Sep 17 00:00:00 2001 From: Aaron Barnes Date: Thu, 17 May 2012 15:40:03 +1200 Subject: [PATCH] MDL-33063 course: Reuse get_all_sections() --- course/lib.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/course/lib.php b/course/lib.php index 382ae358cee..2599958db9c 100644 --- a/course/lib.php +++ b/course/lib.php @@ -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); -- 2.43.0