Add missing condition in PageCache
authorMatthias Schmidt <gravatronics@live.com>
Sun, 21 Aug 2016 13:58:03 +0000 (15:58 +0200)
committerMatthias Schmidt <gravatronics@live.com>
Sun, 21 Aug 2016 13:58:07 +0000 (15:58 +0200)
wcfsetup/install/files/lib/data/page/PageCache.class.php

index 46229ee47be639edddfbb5a0de1bbc2241bd970b..2d021f174ba393b3fed9014437718f8b777d0505 100644 (file)
@@ -93,8 +93,9 @@ class PageCache extends SingletonFactory {
                                if ($languageID !== null && isset($this->cache['pageTitles'][$pageID][$languageID])) {
                                        return $this->cache['pageTitles'][$pageID][$languageID];
                                }
-                               
-                               return $this->cache['pageTitles'][$pageID][WCF::getLanguage()->languageID];
+                               else if (isset($this->cache['pageTitles'][$pageID][WCF::getLanguage()->languageID])) {
+                                       return $this->cache['pageTitles'][$pageID][WCF::getLanguage()->languageID];
+                               }
                        }
                        else {
                                return $this->cache['pageTitles'][$pageID][0];