MDL-44137 group: fix stdClass name

Fix only for new core_group_update_groups webservice.
This commit is contained in:
Damyon Wiese 2018-11-05 15:06:00 +08:00
parent f6ca9ca691
commit 17af25ce92

View File

@ -1550,7 +1550,7 @@ class core_group_external extends external_api {
try {
self::validate_context($context);
} catch (Exception $e) {
$exceptionparam = new sdtClass();
$exceptionparam = new stdClass();
$exceptionparam->message = $e->getMessage();
$exceptionparam->courseid = $group->courseid;
throw new moodle_exception('errorcoursecontextnotvalid', 'webservice', '', $exceptionparam);