Merge branch 'MDL-67638-37' of https://github.com/nguyenphuctien/moodle into MOODLE_37_STABLE

This commit is contained in:
Sara Arjona
2020-01-15 12:20:00 +01:00
+1
View File
@@ -2202,6 +2202,7 @@ function move_courses($courseids, $categoryid) {
foreach ($dbcourses as $dbcourse) {
$course = new stdClass();
$course->id = $dbcourse->id;
$course->timemodified = time();
$course->category = $category->id;
$course->sortorder = $category->sortorder + MAX_COURSES_IN_CATEGORY - $i++;
if ($category->visible == 0) {