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)

This commit is contained in:
samulik
2008-12-04 12:23:12 +00:00
parent 3ff8bf266b
commit 7e2d412d0a
+1 -1
View File
@@ -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();
}