Fix WCFSetup
authorTim Düsterhus <duesterhus@woltlab.com>
Mon, 27 Jul 2015 18:53:39 +0000 (20:53 +0200)
committerTim Düsterhus <duesterhus@woltlab.com>
Mon, 27 Jul 2015 18:53:39 +0000 (20:53 +0200)
wcfsetup/install/files/lib/util/FileUtil.class.php

index 4705e6a322eabf0648c38e787f9da047d91a5771..720a6ed18e8e0e05821cf53f3cc7e82e995720ac 100644 (file)
@@ -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") {