From 6a74606965a77b7c3e3c37e83291b72cb1aab82e Mon Sep 17 00:00:00 2001 From: Neill Magill Date: Fri, 6 Oct 2017 10:36:06 +0100 Subject: [PATCH] MDL-60364 Web service: E_ERROR in course_check_updates web service The error stated that course_check_updates() is undefined, this function is in the course lib.php file. --- course/externallib.php | 1 + 1 file changed, 1 insertion(+) diff --git a/course/externallib.php b/course/externallib.php index 619129741f6..2006fe75288 100644 --- a/course/externallib.php +++ b/course/externallib.php @@ -3072,6 +3072,7 @@ class core_course_external extends external_api { */ public static function check_updates($courseid, $tocheck, $filter = array()) { global $CFG, $DB; + require_once($CFG->dirroot . "/course/lib.php"); $params = self::validate_parameters( self::check_updates_parameters(),