diff options
-rw-r--r-- | core/Filechecks.php | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/core/Filechecks.php b/core/Filechecks.php index 94340afded..bf3e36f1d7 100644 --- a/core/Filechecks.php +++ b/core/Filechecks.php @@ -47,11 +47,8 @@ class Filechecks Filesystem::mkdir($directoryToCheck); $directory = Filesystem::realpath($directoryToCheck); - $resultCheck[$directory] = false; - if ($directory !== false // realpath() returns FALSE on failure - && is_writable($directoryToCheck) - ) { - $resultCheck[$directory] = true; + if ($directory !== false) { + $resultCheck[$directory] = is_writable($directoryToCheck); } } return $resultCheck; |