Fixed small issue
authorMarcel Werk <burntime@woltlab.com>
Thu, 7 Jun 2012 20:59:18 +0000 (22:59 +0200)
committerMarcel Werk <burntime@woltlab.com>
Thu, 7 Jun 2012 20:59:18 +0000 (22:59 +0200)
wcfsetup/install/files/lib/system/session/SessionHandler.class.php

index 2d9d4bcd17f6d2dec2e400a321848e3601e724c5..af23c2e1ef47ef9b27aaba9dbcb4422ca4cc158c 100644 (file)
@@ -514,7 +514,7 @@ class SessionHandler extends SingletonFactory {
                        'requestMethod' => $this->requestMethod,
                        'lastActivityTime' => TIME_NOW,
                        'packageID' => PACKAGE_ID,
-                       'controller' => (PACKAGE_ID) ? RequestHandler::getInstance()->getActiveRequest()->getClassName() : ''
+                       'controller' => (PACKAGE_ID && RequestHandler::getInstance()->getActiveRequest()) ? RequestHandler::getInstance()->getActiveRequest()->getClassName() : ''
                );
                if ($this->variablesChanged) {
                        $data['sessionVariables'] = serialize($this->variables);