From 1dcd1a071cff14abea017d9e4ac383158b2f3635 Mon Sep 17 00:00:00 2001 From: Johannes Burk Date: Sun, 13 Aug 2017 14:42:54 +0200 Subject: [PATCH] MDL-59799 course: Include course/lib.php before using move_courses(). --- lib/coursecatlib.php | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/coursecatlib.php b/lib/coursecatlib.php index e5edde1a17b..d8c8ef12855 100644 --- a/lib/coursecatlib.php +++ b/lib/coursecatlib.php @@ -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"); -- 2.43.0