User.init(
{@$__wcf->user->userID},
- '{@$__wcf->user->username|encodeJS}',
+ {if $__wcf->user->userID}'{@$__wcf->user->username|encodeJS}'{else}''{/if},
{if $__wcf->user->userID}'{@$__wcf->user->getLink()|encodeJS}'{else}''{/if}
);
define.amd = __require_define_amd;
$.holdReady(true);
- WCF.User.init({@$__wcf->user->userID}, '{@$__wcf->user->username|encodeJS}');
+ WCF.User.init(
+ {@$__wcf->user->userID},
+ {if $__wcf->user->userID}'{@$__wcf->user->username|encodeJS}'{else}''{/if}
+ );
</script>
{js application='wcf' file='WCF.Like' bundle='WCF.Combined' hasTiny=true}