diff --git a/include/comment.php b/include/comment.php
index 2c5b597..95007d7 100644
--- a/include/comment.php
+++ b/include/comment.php
@@ -194,7 +194,10 @@ function forum_lookup_user($iUserId)
if ($iUserId > 0)
{
$oUser = new User($iUserId);
- $sMailto = '' . $oUser->sRealname . '';
+ if($_SESSION['current']->isLoggedIn())
+ $sMailto = '' . $oUser->sRealname . '';
+ else
+ $sMailto = $oUser->sRealname;
}
if (!$iUserId || !$oUser->isLoggedIn())
{