Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
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 (merge from 19_STABLE)
  • Loading branch information...
commit 7e2d412d0aaa2a4033459725d19108b72f0866c5 1 parent 3ff8bf2
samulik authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  course/import/activities/mod.php
View
2  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();
}
Please sign in to comment.
Something went wrong with that request. Please try again.