summaryrefslogtreecommitdiff
path: root/rt/share/html/Elements/ShowUserVerbose
diff options
context:
space:
mode:
Diffstat (limited to 'rt/share/html/Elements/ShowUserVerbose')
-rw-r--r--rt/share/html/Elements/ShowUserVerbose7
1 files changed, 4 insertions, 3 deletions
diff --git a/rt/share/html/Elements/ShowUserVerbose b/rt/share/html/Elements/ShowUserVerbose
index 9ff8cbbc8..f805b575a 100644
--- a/rt/share/html/Elements/ShowUserVerbose
+++ b/rt/share/html/Elements/ShowUserVerbose
@@ -2,7 +2,7 @@
%#
%# COPYRIGHT:
%#
-%# This software is Copyright (c) 1996-2012 Best Practical Solutions, LLC
+%# This software is Copyright (c) 1996-2013 Best Practical Solutions, LLC
%# <sales@bestpractical.com>
%#
%# (Except where explicitly superseded by other copyright notices)
@@ -54,8 +54,9 @@ my $comment = '';
if ($User) {
$address = $User->EmailAddress;
- $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;
} else {
$address = $Address;
}