diff --git a/phpBB/privmsg.php b/phpBB/privmsg.php
index 163d7a1813..e6d0388a53 100644
--- a/phpBB/privmsg.php
+++ b/phpBB/privmsg.php
@@ -524,7 +524,7 @@ else if ( $mode == 'read' )
$aim_img = ( $privmsg['user_aim'] ) ? '
' : '';
$aim = ( $privmsg['user_aim'] ) ? '' . $lang['AIM'] . '' : '';
- $temp_url = append_sid("profile.$phpEx?mode=viewprofile&" . POST_USERS_URL . "=$poster_id");
+ $temp_url = append_sid("profile.$phpEx?mode=viewprofile&" . POST_USERS_URL . "=$user_id_from");
$msn_img = ( $privmsg['user_msnm'] ) ? '
' : '';
$msn = ( $privmsg['user_msnm'] ) ? '' . $lang['MSNM'] . '' : '';