From: Alexander Ebert Date: Fri, 25 Mar 2016 14:17:23 +0000 (+0100) Subject: Properly handling unknown controllers X-Git-Tag: 3.0.0_Beta_1~1286^2~52 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=bae0d7e4e4c6ecde9ef846ab2ce811da25803c7e;p=GitHub%2FWoltLab%2FWCF.git Properly handling unknown controllers --- diff --git a/wcfsetup/install/files/lib/system/page/PageLocationManager.class.php b/wcfsetup/install/files/lib/system/page/PageLocationManager.class.php index 9abe47564c..98a99b36a0 100644 --- a/wcfsetup/install/files/lib/system/page/PageLocationManager.class.php +++ b/wcfsetup/install/files/lib/system/page/PageLocationManager.class.php @@ -29,6 +29,10 @@ class PageLocationManager extends SingletonFactory { $pageID = $pageObjectID = 0; $activeRequest = RequestHandler::getInstance()->getActiveRequest(); + if ($activeRequest === null) { + return; + } + $metaData = $activeRequest->getMetaData(); if (isset($metaData['cms'])) { $pageID = $metaData['cms']['pageID'];