Skip to content

Commit

Permalink
enrol MDL-21297 Fixed syntax error
Browse files Browse the repository at this point in the history
  • Loading branch information
Sam Hemelryk committed Jan 13, 2010
1 parent de7a00a commit b0cab8b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion enrol/mnet/enrol.php
Original file line number Diff line number Diff line change
Expand Up @@ -342,7 +342,7 @@ function enrol_user($user, $courseid) {
function unenrol_user($username, $courseid) {
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'));
}

Expand Down

0 comments on commit b0cab8b

Please sign in to comment.