Fixed undefined variable.
This commit is contained in:
parent
a4cc14e4c1
commit
432615508d
1 changed files with 4 additions and 2 deletions
|
@ -9,6 +9,8 @@ if(!$msz->getAuthInfo()->getPerms('global')->check(Perm::G_EMOTES_MANAGE))
|
||||||
|
|
||||||
$emotes = $msz->getEmotes();
|
$emotes = $msz->getEmotes();
|
||||||
$emoteId = (string)filter_input(INPUT_GET, 'e', FILTER_SANITIZE_NUMBER_INT);
|
$emoteId = (string)filter_input(INPUT_GET, 'e', FILTER_SANITIZE_NUMBER_INT);
|
||||||
|
$emoteInfo = [];
|
||||||
|
$emoteStrings = [];
|
||||||
|
|
||||||
if(empty($emoteId))
|
if(empty($emoteId))
|
||||||
$isNew = true;
|
$isNew = true;
|
||||||
|
@ -101,6 +103,6 @@ while($_SERVER['REQUEST_METHOD'] === 'POST' && CSRF::validateRequest()) {
|
||||||
|
|
||||||
Template::render('manage.general.emoticon', [
|
Template::render('manage.general.emoticon', [
|
||||||
'emote_new' => $isNew,
|
'emote_new' => $isNew,
|
||||||
'emote_info' => $emoteInfo ?? null,
|
'emote_info' => $emoteInfo,
|
||||||
'emote_strings' => $emoteStrings ?? [],
|
'emote_strings' => $emoteStrings,
|
||||||
]);
|
]);
|
||||||
|
|
Loading…
Reference in a new issue