From 219cfc8d178eb9cba8e8482006c731c45cc2ac33 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Tim=20D=C3=BCsterhus?= Date: Fri, 29 Oct 2021 16:06:44 +0200 Subject: [PATCH] Fix ACP login for PHP 8.1 see 9d12c9783ce32b0396a80a498f54b053591d4aa3 --- wcfsetup/install/files/acp/templates/header.tpl | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/wcfsetup/install/files/acp/templates/header.tpl b/wcfsetup/install/files/acp/templates/header.tpl index e42883decb..840b6a59aa 100644 --- a/wcfsetup/install/files/acp/templates/header.tpl +++ b/wcfsetup/install/files/acp/templates/header.tpl @@ -150,7 +150,7 @@ 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} ); @@ -180,7 +180,10 @@ {js application='wcf' file='WCF.Attachment' bundle='WCF.Combined'} {js application='wcf' file='WCF.Message' bundle='WCF.Combined'} -- 2.20.1