From 78a36ca248af0993d09f402baf5d1ef862681005 Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Sun, 1 Jan 2017 12:13:28 +0100 Subject: [PATCH] Added work-around for WCF upgrade --- .../lib/system/cache/builder/RoutingCacheBuilder.class.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/wcfsetup/install/files/lib/system/cache/builder/RoutingCacheBuilder.class.php b/wcfsetup/install/files/lib/system/cache/builder/RoutingCacheBuilder.class.php index b2e4b93eea..cfc77ef7ae 100644 --- a/wcfsetup/install/files/lib/system/cache/builder/RoutingCacheBuilder.class.php +++ b/wcfsetup/install/files/lib/system/cache/builder/RoutingCacheBuilder.class.php @@ -1,5 +1,6 @@ packageID == 1) { // handle WCF $page = PageCacheBuilder::getInstance()->getData([], 'landingPage'); - if ($page->controller) { + if ($page === null) { + // invalid cache data, e.g. during upgrade 2.1 -> 3.0 + $controller = ArticleListPage::class; + } + else if ($page->controller) { $controller = $page->controller; } else { -- 2.20.1