Fixed empty birthday in message sidebar
authorMarcel Werk <burntime@woltlab.com>
Tue, 11 Jun 2013 11:44:52 +0000 (13:44 +0200)
committerMarcel Werk <burntime@woltlab.com>
Tue, 11 Jun 2013 11:44:52 +0000 (13:44 +0200)
com.woltlab.wcf/templates/messageSidebar.tpl

index 475f48fd70e40451a15e92554d09fba4fce8bcc0..559eb30b05fb23c2629c332001ffb0758fd182ff 100644 (file)
                                                                {assign var='__sidebarUserOptions' value=','|explode:MESSAGE_SIDEBAR_USER_OPTIONS}
                                                                {foreach from=$__sidebarUserOptions item='__sidebarUserOption'}
                                                                        {if $userProfile->getUserOption($__sidebarUserOption)}
-                                                                               <dt>{lang}wcf.user.option.{$__sidebarUserOption}{/lang}</dt>
-                                                                               <dd{if $__sidebarUserOption == 'location'} itemprop="locality"{/if}>{@$userProfile->getFormattedUserOption($__sidebarUserOption)}</dd>
+                                                                               {if $__sidebarUserOption != 'birthday' || $userProfile->getUserOption($__sidebarUserOption) != '0000-00-00'}
+                                                                                       <dt>{lang}wcf.user.option.{$__sidebarUserOption}{/lang}</dt>
+                                                                                       <dd{if $__sidebarUserOption == 'location'} itemprop="locality"{/if}>{@$userProfile->getFormattedUserOption($__sidebarUserOption)}</dd>
+                                                                               {/if}
                                                                        {/if}
                                                                {/foreach}
                                                        {/if}