From 2eacc065b7100bbfcd394f3aa80486f4a6694ee6 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Tim=20D=C3=BCsterhus?= Date: Sun, 3 Jan 2016 22:35:06 +0100 Subject: [PATCH] Fix WCFSetup w/ WCFSETUP_USEDEFAULTWCFDIR --- wcfsetup/install/files/lib/system/WCFSetup.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wcfsetup/install/files/lib/system/WCFSetup.class.php b/wcfsetup/install/files/lib/system/WCFSetup.class.php index a2f0d8a9af..a382573295 100644 --- a/wcfsetup/install/files/lib/system/WCFSetup.class.php +++ b/wcfsetup/install/files/lib/system/WCFSetup.class.php @@ -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/'; } -- 2.20.1