From: Janusz Dobrowolski Date: Wed, 19 Dec 2012 16:17:39 +0000 (+0100) Subject: Fixed write test for main directory during install. X-Git-Tag: 2.3-final~363 X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=commitdiff_plain;h=fff65dd000727b3403f641cb265c7b327b4fe22d;p=fa-stable.git Fixed write test for main directory during install. --- diff --git a/includes/main.inc b/includes/main.inc index 8f2b3c33..e6b7f9f8 100644 --- a/includes/main.inc +++ b/includes/main.inc @@ -256,9 +256,9 @@ function check_write($path) { if ($path == ''//|| $path == '.' || $path == '..' ) return 0; - + return is_writable($path) ? (is_dir($path) ? 1 : -1) - : (is_file($path) ? 0 : ($path == '.' ? 0 : check_write(dirname($path)))); + : (is_file($path) ? 0 : ($path == '.' || $path == '..' ? 0 : check_write(dirname($path)))); } /*