From 152f0c89ad81fb751366da725c47cbc342ab7131 Mon Sep 17 00:00:00 2001 From: "Paul S. Owen" Date: Sun, 7 Apr 2002 00:28:22 +0000 Subject: [PATCH] Fix broken link to email form (also allow admins to view email button) git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@2497 89ea8834-ac86-4346-8a33-228a782c2dd0 --- phpBB/privmsg.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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'] . '';