From 01ce42f0d2ccc90b09b41f15589de63cde274ddf Mon Sep 17 00:00:00 2001 From: Matthias Schmidt Date: Sun, 21 Aug 2016 15:58:03 +0200 Subject: [PATCH] Add missing condition in PageCache --- wcfsetup/install/files/lib/data/page/PageCache.class.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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]; -- 2.20.1