Check if the smiley module disabled
authorCyperghost <olaf_schmitz_1@t-online.de>
Fri, 18 Oct 2024 10:52:00 +0000 (12:52 +0200)
committerCyperghost <olaf_schmitz_1@t-online.de>
Fri, 18 Oct 2024 10:52:00 +0000 (12:52 +0200)
wcfsetup/install/files/lib/data/smiley/SmileyCache.class.php

index 749b0df0513bd03a34ed6dff57fc9ebd4382e351..901c382319d96f7d8f0028f1e97852853d869981 100644 (file)
@@ -173,6 +173,10 @@ class SmileyCache extends SingletonFactory
      */
     public function getEmojis(): array
     {
+        if (!MODULE_SMILEY) {
+            return [];
+        }
+
         if (!isset($this->emojis)) {
             $this->emojis = [];
             foreach ($this->getVisibleCategories() as $category) {