Commit e20752c4 authored by Andrew Nicols's avatar Andrew Nicols
Browse files

MDL-60587 calendar: Fix un-validated params

parent 30ff29dc
......@@ -716,8 +716,7 @@ class core_calendar_external extends external_api {
global $CFG, $PAGE, $USER;
$params = ['eventid' => $eventid];
self::validate_parameters(self::get_calendar_event_by_id_parameters(), $params);
$params = self::validate_parameters(self::get_calendar_event_by_id_parameters(), ['eventid' => $eventid]);
$context = \context_user::instance($USER->id);
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment