From: Alexander Ebert Date: Thu, 27 Apr 2017 10:17:59 +0000 (+0200) Subject: Avoid issues with corrupted smiley category data X-Git-Tag: 3.0.5~25 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=5d7d5fec76aab74cc08b9b0d260ad59470350fbe;p=GitHub%2FWoltLab%2FWCF.git Avoid issues with corrupted smiley category data --- diff --git a/wcfsetup/install/files/lib/system/html/input/node/HtmlInputNodeTextParser.class.php b/wcfsetup/install/files/lib/system/html/input/node/HtmlInputNodeTextParser.class.php index eb8d92c8fe..ba768e1b03 100644 --- a/wcfsetup/install/files/lib/system/html/input/node/HtmlInputNodeTextParser.class.php +++ b/wcfsetup/install/files/lib/system/html/input/node/HtmlInputNodeTextParser.class.php @@ -96,7 +96,7 @@ class HtmlInputNodeTextParser { $categories = SmileyCache::getInstance()->getCategories(); foreach ($smilies as $categoryID => $categorySmilies) { - if ($categories[$categoryID ?: null]->isDisabled) continue; + if (!array_key_exists($categoryID ?: null, $categories) || $categories[$categoryID ?: null]->isDisabled) continue; /** @var Smiley $smiley */ foreach ($categorySmilies as $smiley) {