Permalink
Browse files

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.
  • Loading branch information...
samulik
samulik committed Dec 3, 2008
1 parent b645325 commit 2e9cb9d29afd3a1acd510db5643b0aa597041be1
Showing with 1 addition and 1 deletion.
  1. +1 −1 course/import/activities/mod.php
@@ -33,7 +33,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();
}

0 comments on commit 2e9cb9d

Please sign in to comment.