Permalink
Browse files

Fix logic for person display when there is no real name

  • Loading branch information...
1 parent 862ad67 commit bc55a7feb97bdefb69cb4ef5da9ad23a11cf3d63 @LegNeato LegNeato committed May 16, 2012
Showing with 7 additions and 1 deletion.
  1. +7 −1 templates/fields/people.tpl
@@ -18,7 +18,13 @@
$n .= '</span>';
}
- $out = ( empty($n) ) ? $rn : "$rn ($n)";
+ if( empty($rn) ) {
+ $out = $n;
+ }elseif( empty($n) ) {
+ $out = $rn;
+ }else {
+ $out = "$rn ($n)";
+ }
// Special case for "nobody"
if( isset($data['name']) && (empty($data['name']) || $data['name'] == 'nobody') ) {

0 comments on commit bc55a7f

Please sign in to comment.