mirror of
https://github.com/moodle/moodle.git
synced 2025-04-21 00:12:56 +02:00
Made is_mnet_remote_user() a bit more robust MDL-8253
This commit is contained in:
parent
298481260e
commit
8f8de2cc87
@ -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);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user