Details
Description
We've received various reports of site being sent forum emails with the mnet idp bounce to send them back to their own site (where they then get told mnet is disabled).
Pretty sure this is due to a bad mnethostid check in email_to_user in lib/moodlelib.php:
if ($user->mnethostid > 1) {
And manifests itself where SITEID is no longer 1...
Going to do some more testing then fix in CVS
Fixed in CVS.
I switched the remote user check to use is_mnet_remote_user() as in the docs here: http://docs.moodle.org/en/Development:Moodle_Network
Peter/Nigel, would be great if you could verify the fix.
thanks