1
0
mirror of https://github.com/vichan-devel/vichan.git synced 2024-11-29 09:44:28 +01:00
This commit is contained in:
Michael Save 2012-03-20 03:39:44 +11:00
parent 33116a07a1
commit 3fbe2f10e9

View File

@ -344,7 +344,7 @@
continue; // don't override config
// are we able to write here?
if(!((file_exists($filename) && is_writable($filename)) || (!file_exists($filename) && is_writable($dirname)))) {
if(!((file_exists($filename) && is_writable($filename)) || (!file_exists($filename) && is_writable(dirname($filename))))) {
// nope
$errors[] = 'Cannot write to ' . $filename . '!';
}