Merge branch 'master-MDL-59799' of https://github.com/jojoob/moodle

This commit is contained in:
David Monllao 2017-09-04 12:33:02 +02:00
commit e8466eee81

View File

@ -1839,6 +1839,7 @@ class coursecat implements renderable, cacheable_object, IteratorAggregate {
}
if ($coursesids) {
require_once($CFG->dirroot.'/course/lib.php');
if (!move_courses($coursesids, $newparentid)) {
if ($showfeedback) {
echo $OUTPUT->notification("Error moving courses");