mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 08:26:37 +02:00
fixed missing exception
This commit is contained in:
parent
68573df5e1
commit
c05260de32
1 changed files with 1 additions and 1 deletions
|
@ -548,7 +548,7 @@ class course_enrolment_manager {
|
|||
require_capability('moodle/role:assign', $this->context);
|
||||
if (!array_key_exists($roleid, $this->get_assignable_roles())) {
|
||||
if (is_defined('AJAX_SCRIPT')) {
|
||||
throw new moodle_;
|
||||
throw new moodle_exception('invalidrole');
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue