From: Janusz Dobrowolski Date: Wed, 19 Dec 2012 16:17:39 +0000 (+0100) Subject: Fixed write test for main directory during install. X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=commitdiff_plain;h=83780e852ab055862cf47e2e8e75bc5028a136ae;p=textcart.git Fixed write test for main directory during install. --- diff --git a/includes/main.inc b/includes/main.inc index 8f2b3c3..e6b7f9f 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)))); } /*