Fix WCFSetup w/ WCFSETUP_USEDEFAULTWCFDIR
authorTim Düsterhus <duesterhus@woltlab.com>
Sun, 3 Jan 2016 21:35:06 +0000 (22:35 +0100)
committerTim Düsterhus <duesterhus@woltlab.com>
Sun, 3 Jan 2016 21:35:06 +0000 (22:35 +0100)
wcfsetup/install/files/lib/system/WCFSetup.class.php

index a2f0d8a9afab0e8a631e5a23d41f7f13c8c09dec..a382573295b25799d4c106129a8988490dc0b329 100644 (file)
@@ -164,7 +164,7 @@ class WCFSetup extends WCF {
         */
        protected static function getInstallationDirectories() {
                if (self::$developerMode && isset($_ENV['WCFSETUP_USEDEFAULTWCFDIR'])) {
-                       if (!is_array($_REQUEST['directories'])) $_REQUEST['directories'] = [];
+                       if (!isset($_REQUEST['directories']) || !is_array($_REQUEST['directories'])) $_REQUEST['directories'] = [];
                        $_REQUEST['directories']['wcf'] = FileUtil::unifyDirSeparator(INSTALL_SCRIPT_DIR).'wcf/';
                }