Details
Description
Line 880 of auth/mnet/auth.php reads:
$logEntryObj->userid = get_field('user','id','username',$logEntryObj->username);
However, this ignores the mnethostid field, and so may fetch the incorrect user ID. The line should instead read something like:
$logEntryObj->userid = get_field('user','id','username',$logEntryObj->username,'mnethostid',(int)$MNET_REMOTE_CLIENT->id);
Made the patch as described.