mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 08:26:37 +02:00
enrol MDL-21297 Fixed syntax error
This commit is contained in:
parent
de7a00a400
commit
b0cab8b97b
1 changed files with 1 additions and 1 deletions
|
@ -342,7 +342,7 @@ class enrolment_plugin_mnet {
|
||||||
function unenrol_user($username, $courseid) {
|
function unenrol_user($username, $courseid) {
|
||||||
global $MNET_REMOTE_CLIENT;
|
global $MNET_REMOTE_CLIENT;
|
||||||
|
|
||||||
if (!$userrecord = $DB->get_record('user', array('username'=>$username, 'mnethostid'=>$MNET_REMOTE_CLIENT->id));
|
if (!$userrecord = $DB->get_record('user', array('username'=>$username, 'mnethostid'=>$MNET_REMOTE_CLIENT->id))) {
|
||||||
throw new mnet_exception(5014, get_string('usernotfound', 'enrol_mnet'));
|
throw new mnet_exception(5014, get_string('usernotfound', 'enrol_mnet'));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue