From: samulik Date: Thu, 4 Dec 2008 12:23:12 +0000 (+0000) Subject: course import: MDL-17497 PHP was running out of memory if a category had a lot of... X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=7e2d412d0aaa2a4033459725d19108b72f0866c5;p=moodle.git course import: MDL-17497 PHP was running out of memory if a category had a lot of courses. Now get_courses only fetches course id and fullname (merge from 19_STABLE) --- diff --git a/course/import/activities/mod.php b/course/import/activities/mod.php index 2fcbfcef5f..741d1cd041 100644 --- a/course/import/activities/mod.php +++ b/course/import/activities/mod.php @@ -32,7 +32,7 @@ } if (!empty($creator)) { - $cat_courses = get_courses($course->category); + $cat_courses = get_courses($course->category, $sort="c.sortorder ASC", $fields="c.id, c.fullname"); } else { $cat_courses = array(); }