Skip to content

Commit

Permalink
course import: MDL-17497 PHP was running out of memory if a category …
Browse files Browse the repository at this point in the history
…had a lot of courses. Now get_courses only fetches course id and fullname (merge from 19_STABLE)
  • Loading branch information
samulik committed Dec 4, 2008
1 parent 3ff8bf2 commit 7e2d412
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion course/import/activities/mod.php
Expand Up @@ -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();
}
Expand Down

0 comments on commit 7e2d412

Please sign in to comment.