Skip to content
This repository
Browse code

Fix logic for person display when there is no real name

  • Loading branch information...
commit bc55a7feb97bdefb69cb4ef5da9ad23a11cf3d63 1 parent 862ad67
Christian Legnitto LegNeato authored

Showing 1 changed file with 7 additions and 1 deletion. Show diff stats Hide diff stats

  1. +7 1 templates/fields/people.tpl
8 templates/fields/people.tpl
@@ -18,7 +18,13 @@
18 18 $n .= '</span>';
19 19 }
20 20
21   - $out = ( empty($n) ) ? $rn : "$rn ($n)";
  21 + if( empty($rn) ) {
  22 + $out = $n;
  23 + }elseif( empty($n) ) {
  24 + $out = $rn;
  25 + }else {
  26 + $out = "$rn ($n)";
  27 + }
22 28
23 29 // Special case for "nobody"
24 30 if( isset($data['name']) && (empty($data['name']) || $data['name'] == 'nobody') ) {

0 comments on commit bc55a7f

Please sign in to comment.
Something went wrong with that request. Please try again.