summaryrefslogtreecommitdiff
path: root/mod.php
diff options
context:
space:
mode:
Diffstat (limited to 'mod.php')
-rw-r--r--mod.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/mod.php b/mod.php
index b147c392..1226a0db 100644
--- a/mod.php
+++ b/mod.php
@@ -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 . '!';
}