Fixed link to guest author
authorMarcel Werk <burntime@woltlab.com>
Wed, 13 Dec 2017 09:36:11 +0000 (10:36 +0100)
committerMarcel Werk <burntime@woltlab.com>
Wed, 13 Dec 2017 09:36:19 +0000 (10:36 +0100)
com.woltlab.wcf/templates/boxSidebarCommentList.tpl

index 48eafa1bb3d03413dbebed4f6db51ac7d1f4724d..ef1531678a6cc40ee5009b78fb4661f46e145e0a 100644 (file)
@@ -6,7 +6,7 @@
                        </div>
                        
                        <p><small>{@$boxComment->getExcerpt(50)}</small></p>
-                       <p><small><a href="{link controller='User' object=$boxComment->getUserProfile()}{/link}" class="userLink" data-user-id="{@$boxComment->userID}">{$boxComment->username}</a> <span class="separatorLeft">{@$boxComment->time|time}</span></small></p>
+                       <p><small>{if $boxComment->userID}<a href="{link controller='User' object=$boxComment->getUserProfile()}{/link}" class="userLink" data-user-id="{@$boxComment->userID}">{$boxComment->username}</a>{else}{$boxComment->username}{/if} <span class="separatorLeft">{@$boxComment->time|time}</span></small></p>
                </li>
        {/foreach}
 </ul>