Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/site/app/views/elements/developers/editors_review_history_item.thtml
diff options
context:
space:
mode:
authorwclouser@mozilla.com <wclouser@mozilla.com@4eb1ac78-321c-0410-a911-ec516a8615a5>2009-08-13 21:17:27 (GMT)
committer wclouser@mozilla.com <wclouser@mozilla.com@4eb1ac78-321c-0410-a911-ec516a8615a5>2009-08-13 21:17:27 (GMT)
commit79d9c1dfe7f3903918d482c5200054fb7c3c1b74 (patch)
tree2d9b78197ac56fd87431c45a699f9a1e7a422631 /site/app/views/elements/developers/editors_review_history_item.thtml
parent006424fa8bb6b053989d6335231e66e7872d8822 (diff)
fix blank name showing up; bug 507931
git-svn-id: http://svn.mozilla.org/addons/trunk@49145 4eb1ac78-321c-0410-a911-ec516a8615a5
Diffstat (limited to 'site/app/views/elements/developers/editors_review_history_item.thtml')
-rw-r--r--site/app/views/elements/developers/editors_review_history_item.thtml8
1 files changed, 7 insertions, 1 deletions
diff --git a/site/app/views/elements/developers/editors_review_history_item.thtml b/site/app/views/elements/developers/editors_review_history_item.thtml
index 269f256..350a9ca 100644
--- a/site/app/views/elements/developers/editors_review_history_item.thtml
+++ b/site/app/views/elements/developers/editors_review_history_item.thtml
@@ -54,7 +54,13 @@ else
}
?></td>
<td><?=$hist['Approval']['created']?></td>
- <td><?=$html->linkEmail($hist['User']['firstname'].' '.$hist['User']['lastname'], $hist['User']['email'])?></td>
+ <?
+ $display_name = trim($hist['User']['firstname'].' '.$hist['User']['lastname']);
+ if (empty($display_name)) {
+ $display_name = $hist['User']['nickname'];
+ }
+ ?>
+ <td><?=$html->linkEmail($display_name, $hist['User']['email'])?></td>
<td>
<?php
if ($hist['Approval']['reviewtype'] == 'nominated') {