Fixed one of these awesome "BREAK DAT SETUP" errors ;)
authorAlexander Ebert <ebert@woltlab.com>
Tue, 5 Jun 2012 21:08:46 +0000 (23:08 +0200)
committerAlexander Ebert <ebert@woltlab.com>
Tue, 5 Jun 2012 21:08:46 +0000 (23:08 +0200)
wcfsetup/install/files/lib/system/session/SessionHandler.class.php

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