From: Tim Düsterhus Date: Tue, 21 Sep 2021 08:55:15 +0000 (+0200) Subject: Merge branch '5.4' X-Git-Tag: 5.5.0_Alpha_1~436 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=30a777d99f80e1b696cd5dca0d420931389295e2;p=GitHub%2FWoltLab%2FWCF.git Merge branch '5.4' --- 30a777d99f80e1b696cd5dca0d420931389295e2 diff --cc com.woltlab.wcf/templates/headIncludeJavaScript.tpl index b3653dcc9e,b0d0840e61..947a8e640b --- a/com.woltlab.wcf/templates/headIncludeJavaScript.tpl +++ b/com.woltlab.wcf/templates/headIncludeJavaScript.tpl @@@ -212,9 -212,13 +212,12 @@@ window.addEventListener('pageshow', fun 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} + ); -{js application='wcf' file='WCF.Like' bundle='WCF.Combined' hasTiny=true} {js application='wcf' file='WCF.ACL' bundle='WCF.Combined' hasTiny=true} {js application='wcf' file='WCF.Attachment' bundle='WCF.Combined' hasTiny=true} {js application='wcf' file='WCF.ColorPicker' bundle='WCF.Combined' hasTiny=true}