From 6b327c6c4fd525dafbf32d86282f49c7c34f339d Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Sun, 9 Jul 2006 17:24:43 +0000 Subject: [PATCH] creating of eg. the files-dir was only tried if the parent dir was writable, which failed if it does not yet exist --- setup/inc/functions.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup/inc/functions.inc.php b/setup/inc/functions.inc.php index 43269e8116..9256d5d79d 100644 --- a/setup/inc/functions.inc.php +++ b/setup/inc/functions.inc.php @@ -64,7 +64,7 @@ */ function check_dir($dir,&$msg,$check_in_docroot=false) { - if (!@is_dir($dir) && !(@is_writeable(dirname($dir)) && @mkdir($dir,0700,true))) + if (!@is_dir($dir) && !@mkdir($dir,0700,true)) { $msg = lang('does not exist'); return false;