Fixed the temp-folder detection in the install.php
authorRouL <roul@codingcorner.info>
Thu, 14 Jul 2011 17:16:56 +0000 (19:16 +0200)
committerRouL <roul@codingcorner.info>
Thu, 14 Jul 2011 17:16:56 +0000 (19:16 +0200)
wcfsetup/install.php

index c4059d8ddedac6c8513fc933655daa213c8ed14d..f47ddac9d635d3bf82716bc6d3e3fc7879e9354a 100644 (file)
@@ -248,11 +248,11 @@ class BasicFileUtil {
                        }\r
                }\r
                \r
-               $dir = INSTALL_SCRIPT_DIR . 'tmp/' . $tmpDir;\r
+               $dir = INSTALL_SCRIPT_DIR . 'tmp/' . $tmpDirName;\r
                @mkdir($dir, 0777);\r
                @chmod($dir, 0777);\r
                \r
-               if (@file_exists($dir) && @is_writable($dir)) {\r
+               if (!@file_exists($dir) || !@is_writable($dir)) {\r
                        $tmpDir = explode('/', $dir);\r
                        array_pop($tmpDir);\r
                        $dir = implode('/', $tmpDir);\r