MDL-51536 webservices: fix invalid param definitions

This commit is contained in:
Dan Poltawski 2015-10-13 19:01:42 +01:00
parent 6333b018ad
commit 4d9edf1b15
2 changed files with 2 additions and 2 deletions

View File

@ -1310,7 +1310,7 @@ class core_group_external extends external_api {
return new external_function_parameters(
array(
'cmid' => new external_value(PARAM_INT, 'course module id'),
'userid' => new external_value(PARAM_INT, 'id of user, empty for current user', VALUE_OPTIONAL, 0)
'userid' => new external_value(PARAM_INT, 'id of user, empty for current user', VALUE_DEFAULT, 0)
)
);
}

View File

@ -466,7 +466,7 @@ class core_notes_external extends external_api {
return new external_function_parameters(
array(
'courseid' => new external_value(PARAM_INT, 'course id, 0 for SITE'),
'userid' => new external_value(PARAM_INT, 'user id', VALUE_OPTIONAL),
'userid' => new external_value(PARAM_INT, 'user id', VALUE_DEFAULT, 0),
)
);
}