From: Marcel Werk Date: Tue, 11 Jun 2013 11:44:52 +0000 (+0200) Subject: Fixed empty birthday in message sidebar X-Git-Tag: 2.0.0_Beta_4~75 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=1995ac1ac00211a94bc8b0e507b05f31f677a8d2;p=GitHub%2FWoltLab%2FWCF.git Fixed empty birthday in message sidebar --- diff --git a/com.woltlab.wcf/templates/messageSidebar.tpl b/com.woltlab.wcf/templates/messageSidebar.tpl index 475f48fd70..559eb30b05 100644 --- a/com.woltlab.wcf/templates/messageSidebar.tpl +++ b/com.woltlab.wcf/templates/messageSidebar.tpl @@ -84,8 +84,10 @@ {assign var='__sidebarUserOptions' value=','|explode:MESSAGE_SIDEBAR_USER_OPTIONS} {foreach from=$__sidebarUserOptions item='__sidebarUserOption'} {if $userProfile->getUserOption($__sidebarUserOption)} -
{lang}wcf.user.option.{$__sidebarUserOption}{/lang}
- {@$userProfile->getFormattedUserOption($__sidebarUserOption)} + {if $__sidebarUserOption != 'birthday' || $userProfile->getUserOption($__sidebarUserOption) != '0000-00-00'} +
{lang}wcf.user.option.{$__sidebarUserOption}{/lang}
+ {@$userProfile->getFormattedUserOption($__sidebarUserOption)} + {/if} {/if} {/foreach} {/if}