mirror of
https://github.com/moodle/moodle.git
synced 2025-01-17 21:49:15 +01:00
fixed wrong exception name
This commit is contained in:
parent
c05260de32
commit
83f9b3d7b3
@ -218,7 +218,7 @@ class enrol_mnet_mnetservice_enrol {
|
||||
$user = $DB->get_record('user', array('username'=>$username, 'mnethostid'=>$client->id));
|
||||
|
||||
if ($user === false) {
|
||||
throw new mnet_exception(5014, 'usernotfound', 'enrol_mnet');
|
||||
throw new mnet_server_exception(5014, 'usernotfound', 'enrol_mnet');
|
||||
}
|
||||
|
||||
if (! $course = $DB->get_record('course', array('id'=>$courseid))) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user