mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 17:06:53 +02:00
Merge branch 'MDL-67638_master' of https://github.com/nguyenphuctien/moodle
This commit is contained in:
commit
daa7107bfb
1 changed files with 1 additions and 0 deletions
|
@ -2209,6 +2209,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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue