From: Marcel Werk Date: Sat, 23 Apr 2016 20:55:26 +0000 (+0200) Subject: Fixed exception in box handler initialization X-Git-Tag: 3.0.0_Beta_1~1828 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=bd7652cacffd9a43cef41be04567341a73549501;p=GitHub%2FWoltLab%2FWCF.git Fixed exception in box handler initialization --- diff --git a/wcfsetup/install/files/lib/system/box/BoxHandler.class.php b/wcfsetup/install/files/lib/system/box/BoxHandler.class.php index 934a9954e0..159e17be49 100644 --- a/wcfsetup/install/files/lib/system/box/BoxHandler.class.php +++ b/wcfsetup/install/files/lib/system/box/BoxHandler.class.php @@ -28,7 +28,10 @@ class BoxHandler extends SingletonFactory { */ protected function init() { // get active page id - $pageID = RequestHandler::getInstance()->getActiveRequest()->getPageID(); + $pageID = 0; + if (($request = RequestHandler::getInstance()->getActiveRequest()) !== null) { + $pageID = $request->getPageID(); + } // load box layout for active page $boxList = new BoxList();