diff options
author | Anders Lindén <anderslinden@bredband.net> | 2015-06-03 00:16:46 +0300 |
---|---|---|
committer | Anders Lindén <anderslinden@bredband.net> | 2015-06-03 00:16:46 +0300 |
commit | d2de02d911e192f786bc1b316298da38fb593fdd (patch) | |
tree | f0d03a0a0784e8552a8f908c483588d721a225cc /core/Filechecks.php | |
parent | bc703344b4f8b5ce24c2c561a3c4d62bdc57cf66 (diff) |
Not setting $resultCheck[false] in core/Filechecks.php function checkDirectoriesWritable.
Diffstat (limited to 'core/Filechecks.php')
-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 d673ccc250..579d9ca980 100644 --- a/core/Filechecks.php +++ b/core/Filechecks.php @@ -48,11 +48,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; |