Properly handling unknown controllers
authorAlexander Ebert <ebert@woltlab.com>
Fri, 25 Mar 2016 14:17:23 +0000 (15:17 +0100)
committerAlexander Ebert <ebert@woltlab.com>
Fri, 25 Mar 2016 14:17:50 +0000 (15:17 +0100)
wcfsetup/install/files/lib/system/page/PageLocationManager.class.php

index 9abe47564c5a4ed1c016fb8e5988a0b8b2a820d1..98a99b36a0546849b831667e0c672b0354404605 100644 (file)
@@ -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'];