Hide trophy points if the user hasn't trophy points
authorJoshua Rüsweg <josh@bastelstu.be>
Sat, 12 Aug 2017 13:42:09 +0000 (15:42 +0200)
committerJoshua Rüsweg <josh@bastelstu.be>
Sat, 12 Aug 2017 13:42:38 +0000 (15:42 +0200)
See #2315

com.woltlab.wcf/templates/userInformationStatistics.tpl

index d99d8a7335322095e94a557775cfd2188eeadd74..927de4caacaeeade185553ac01c2b423978eb751 100644 (file)
@@ -10,7 +10,7 @@
        <dd>{#$user->activityPoints}</dd>
 {/if}
 
-{if MODULE_TROPHY && $__wcf->session->getPermission('user.profile.trophy.canSeeTrophies') && ($user->isAccessible('canViewTrophies') || $user->userID == $__wcf->session->userID)}
+{if MODULE_TROPHY && $__wcf->session->getPermission('user.profile.trophy.canSeeTrophies') && $user->trophyPoints && ($user->isAccessible('canViewTrophies') || $user->userID == $__wcf->session->userID)}
        <dt><a href="#" class="trophyPoints jsTooltip userTrophyOverlayList" data-user-id="{$user->userID}" title="{lang}wcf.user.trophy.showTrophies{/lang}">{lang}wcf.user.trophy.trophyPoints{/lang}</a></dt>
        <dd>{#$user->trophyPoints}</dd>
 {/if}