diff --git a/public-legacy/manage/general/emoticon.php b/public-legacy/manage/general/emoticon.php index 8613db1..84d9b32 100644 --- a/public-legacy/manage/general/emoticon.php +++ b/public-legacy/manage/general/emoticon.php @@ -9,6 +9,8 @@ if(!$msz->getAuthInfo()->getPerms('global')->check(Perm::G_EMOTES_MANAGE)) $emotes = $msz->getEmotes(); $emoteId = (string)filter_input(INPUT_GET, 'e', FILTER_SANITIZE_NUMBER_INT); +$emoteInfo = []; +$emoteStrings = []; if(empty($emoteId)) $isNew = true; @@ -101,6 +103,6 @@ while($_SERVER['REQUEST_METHOD'] === 'POST' && CSRF::validateRequest()) { Template::render('manage.general.emoticon', [ 'emote_new' => $isNew, - 'emote_info' => $emoteInfo ?? null, - 'emote_strings' => $emoteStrings ?? [], + 'emote_info' => $emoteInfo, + 'emote_strings' => $emoteStrings, ]);