From: Matthias Schmidt Date: Sun, 21 Aug 2016 13:58:03 +0000 (+0200) Subject: Add missing condition in PageCache X-Git-Tag: 3.0.0_Beta_1~623 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=01ce42f0d2ccc90b09b41f15589de63cde274ddf;p=GitHub%2FWoltLab%2FWCF.git Add missing condition in PageCache --- diff --git a/wcfsetup/install/files/lib/data/page/PageCache.class.php b/wcfsetup/install/files/lib/data/page/PageCache.class.php index 46229ee47b..2d021f174b 100644 --- a/wcfsetup/install/files/lib/data/page/PageCache.class.php +++ b/wcfsetup/install/files/lib/data/page/PageCache.class.php @@ -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];