Fixed small issue
authorMarcel Werk <burntime@woltlab.com>
Sat, 7 Dec 2013 12:58:25 +0000 (13:58 +0100)
committerMarcel Werk <burntime@woltlab.com>
Sat, 7 Dec 2013 12:58:25 +0000 (13:58 +0100)
com.woltlab.wcf/templates/authorSidebarBox.tpl

index 7dda73dae1488de62dfdffe7095f839931fa1e49..8d348fea170a7e788a3b9c76c409e8c9f648655a 100644 (file)
@@ -6,11 +6,13 @@
                
                <div>
                        <div class="containerHeadline">
-                               <h3><a href="{link controller='User' object=$userProfile}{/link}" rel="author">{$userProfile->username}</a></h3>
+                               <h3>{if $userProfile->userID}<a href="{link controller='User' object=$userProfile}{/link}" rel="author">{$userProfile->username}</a>{else}{$userProfile->username}{/if}</h3>
                                {if MODULE_USER_RANK && $userProfile->getUserTitle()}<p><span class="badge userTitleBadge{if $userProfile->getRank() && $userProfile->getRank()->cssClassName} {@$userProfile->getRank()->cssClassName}{/if}">{$userProfile->getUserTitle()}</span></p>{/if}
                        </div>
                        
-                       {include file='userInformationStatistics' user=$userProfile}
+                       {if $userProfile->userID}
+                               {include file='userInformationStatistics' user=$userProfile}
+                       {/if}
                </div>
        </div>
 </fieldset>
\ No newline at end of file