Fixed undefined variable.

This commit is contained in:
flash 2023-11-26 22:23:47 +00:00
parent a4cc14e4c1
commit 432615508d

View file

@ -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,
]);