X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;ds=sidebyside;f=includes%2Fmain.inc;h=1101584eca779028dd8b6f1bec7547fddad91b7b;hb=e8ebca8f2b08eeb3bfd3da04ca946dfa8cc1fb3f;hp=98143cf9843626965a97036f555bf0008be2baff;hpb=90b3d069d96b99671af51726e2953352738abb75;p=fa-stable.git diff --git a/includes/main.inc b/includes/main.inc index 98143cf9..1101584e 100644 --- a/includes/main.inc +++ b/includes/main.inc @@ -261,9 +261,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)))); } /*