From 598c974d462c16fa3996f1aef9c0c22b78448c70 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 70349fdf2ef..5a7c6ef98d4 100644 --- a/course/externallib.php +++ b/course/externallib.php @@ -3135,6 +3135,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(),