MDL-21524 fixed wrong var names, credit goes to Heiko Schach

This commit is contained in:
Petr Skoda
2010-07-27 19:07:58 +00:00
parent 55880bdd9a
commit 12b8f43314
+2 -2
View File
@@ -44,7 +44,7 @@ class moodle_enrol_external extends external_api {
'courseid' => new external_value(PARAM_INT, 'Course id'),
'withcapability' => new external_value(PARAM_CAPABILITY, 'User should have this capability'),
'groupid' => new external_value(PARAM_INT, 'Group id, null means all groups'),
'activeonly' => new external_value(PARAM_INT, 'True means only active, false means all participants'),
'onlyactive' => new external_value(PARAM_INT, 'True means only active, false means all participants'),
)
);
}
@@ -88,7 +88,7 @@ class moodle_enrol_external extends external_api {
require_capability('moodle/site:accessallgroups', $coursecontext);
}
}
if ($activeonly) {
if ($onlyactive) {
require_capability('moodle/course:enrolreview', $coursecontext);
}