Made is_mnet_remote_user() a bit more robust MDL-8253

This commit is contained in:
moodler 2007-01-22 08:25:20 +00:00
parent 298481260e
commit 8f8de2cc87

View File

@ -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);
}
/**