Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fix logic for person display when there is no real name

  • Loading branch information...
commit bc55a7feb97bdefb69cb4ef5da9ad23a11cf3d63 1 parent 862ad67
@LegNeato LegNeato authored
Showing with 7 additions and 1 deletion.
  1. +7 −1 templates/fields/people.tpl
View
8 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') ) {
Please sign in to comment.
Something went wrong with that request. Please try again.