Fixed WCFSetup triggering ACP rescue mode
authorAlexander Ebert <ebert@woltlab.com>
Sun, 24 Jan 2016 18:36:25 +0000 (19:36 +0100)
committerAlexander Ebert <ebert@woltlab.com>
Sun, 24 Jan 2016 18:36:35 +0000 (19:36 +0100)
wcfsetup/install/files/lib/system/WCFACP.class.php

index a9c1316f1eed93957e5051e20cbfba320c1ff659..b9aa7fde5e766ff71634bac6366574155b316517 100644 (file)
@@ -77,7 +77,7 @@ class WCFACP extends WCF {
                if (self::$inRescueMode === null) {
                        self::$inRescueMode = false;
                        
-                       if (isset($_SERVER['HTTP_HOST'])) {
+                       if (PACKAGE_ID && isset($_SERVER['HTTP_HOST'])) {
                                self::$inRescueMode = true;
                                
                                foreach (ApplicationHandler::getInstance()->getApplications() as $application) {