diff --git a/phpBB/privmsg.php b/phpBB/privmsg.php index 074c5c392b..9a20cc006d 100644 --- a/phpBB/privmsg.php +++ b/phpBB/privmsg.php @@ -472,9 +472,9 @@ else if ( $mode == 'read' ) $pm_img = '' . $lang['Send_private_message'] . ''; $pm = '' . $lang['Send_private_message'] . ''; - if ( !empty($privmsg['user_viewemail']) || $is_auth['auth_mod'] ) + if ( !empty($privmsg['user_viewemail']) || $userdata['user_level'] == ADMIN ) { - $email_uri = ( $board_config['board_email_form'] ) ? append_sid("profile.$phpEx?mode=email&" . POST_USERS_URL .'=' . $poster_id) : 'mailto:' . $privmsg['user_email']; + $email_uri = ( $board_config['board_email_form'] ) ? append_sid("profile.$phpEx?mode=email&" . POST_USERS_URL .'=' . $user_id_from) : 'mailto:' . $privmsg['user_email']; $email_img = '' . $lang['Send_email'] . ''; $email = '' . $lang['Send_email'] . '';