function write: do is_writable for the dir and not for the nonexisting file now

This commit is contained in:
Ralf Becker 2002-02-18 11:24:38 +00:00
parent 090b9022b6
commit f6c6249fd2

View File

@ -485,7 +485,7 @@
{ {
$header = "<?php\n\n"; $header = "<?php\n\n";
} }
if (!is_writeable($file) || !($f = fopen($file,'w'))) if (!is_writeable(PHPGW_SERVER_ROOT."/$app/setup") || !($f = fopen($file,'w')))
{ {
return False; return False;
} }