File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed
wcfsetup/install/files/lib/system/cache/eager/data Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -61,16 +61,19 @@ public function getLanguageCategory(string $categoryName): ?LanguageCategory
6161 public function getLanguageCategoryByID (int $ languageCategoryID ): ?LanguageCategory
6262 {
6363 $ categoryName = $ this ->categoryIDs [$ languageCategoryID ] ?? null ;
64+ if ($ categoryName === null ) {
65+ return null ;
66+ }
6467
65- return $ this ->categories [ $ categoryName] ?? null ;
68+ return $ this ->getLanguageCategory ( $ categoryName) ;
6669 }
6770
6871 /**
6972 * Returns `true` if the language category with the given category name exists.
7073 */
7174 public function languageCategoryExists (string $ categoryName ): bool
7275 {
73- return isset ( $ this ->categories [ $ categoryName ] );
76+ return \array_key_exists ( $ categoryName , $ this ->categories );
7477 }
7578
7679 /**
You can’t perform that action at this time.
0 commit comments