Made is_mnet_remote_user() a bit more robust MDL-8253
This commit is contained in:
+1
-1
@@ -6626,7 +6626,7 @@ function is_mnet_remote_user($user) {
|
||||
unset($env);
|
||||
}
|
||||
|
||||
return ($user->mnethostid != $CFG->mnet_localhost_id);
|
||||
return (!empty($user->mnethostid) && $user->mnethostid != $CFG->mnet_localhost_id);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user