- $phrase = $User->RealName if $User->RealName && lc $User->RealName ne lc $address;
- $comment = $User->Name if lc $User->Name ne lc $address;
+ $phrase = $User->RealName
+ if $User->RealName && ( !$address || lc $User->RealName ne lc $address );
+ $comment = $User->Name if !$address || lc $User->Name ne lc $address;