From 5744ea36820f7768bd3049e77b38f3593febec06 Mon Sep 17 00:00:00 2001 From: Dan Poltawski Date: Thu, 24 May 2012 20:42:58 +0800 Subject: [PATCH] Revert "MDL-33063 course: Reuse get_all_sections()" This reverts commit 66b494771ffc731472a374bef1b5cd12befd53b2. --- course/lib.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/course/lib.php b/course/lib.php index 371666fd55f..8e073737607 100644 --- a/course/lib.php +++ b/course/lib.php @@ -1070,7 +1070,7 @@ function get_array_of_activities($courseid) { return $mod; // always return array } - if ($sections = get_all_sections($courseid)) { + if ($sections = $DB->get_records("course_sections", array("course"=>$courseid), "section ASC")) { foreach ($sections as $section) { if (!empty($section->sequence)) { $sequence = explode(",", $section->sequence); -- 2.43.0