From 97e524315ea05df3f833de4e5a6239a74c4e9f73 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Tim=20D=C3=BCsterhus?= Date: Mon, 27 Jul 2015 20:53:39 +0200 Subject: [PATCH] Fix WCFSetup --- wcfsetup/install/files/lib/util/FileUtil.class.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wcfsetup/install/files/lib/util/FileUtil.class.php b/wcfsetup/install/files/lib/util/FileUtil.class.php index 4705e6a322..720a6ed18e 100644 --- a/wcfsetup/install/files/lib/util/FileUtil.class.php +++ b/wcfsetup/install/files/lib/util/FileUtil.class.php @@ -198,7 +198,7 @@ final class FileUtil { break; } - } + } // go up one level else if (isset($current[$i]) && !isset($target[$i])) { $relPath .= '../'; @@ -527,7 +527,7 @@ final class FileUtil { if (self::$mode === null) { // WCFSetup - if (defined('INSTALL_SCRIPT')) { + if (defined('INSTALL_SCRIPT') && file_exists(INSTALL_SCRIPT)) { // do not use PHP_OS here, as this represents the system it was built on != running on // php_uname() is forbidden on some strange hosts; PHP_EOL is reliable if (PHP_EOL == "\r\n") { -- 2.20.1