diff options
author | Matthieu Aubry <matt@piwik.org> | 2015-06-03 07:36:45 +0300 |
---|---|---|
committer | Matthieu Aubry <matt@piwik.org> | 2015-06-03 07:36:45 +0300 |
commit | c644d09b69c8ea58e5f656e3ff64b4bddf45ef56 (patch) | |
tree | d002ecfc32b2120500c8c338896650458649601e /core/Filechecks.php | |
parent | 1664da1122849efbdd81a8c918678a052c4f539c (diff) | |
parent | d2de02d911e192f786bc1b316298da38fb593fdd (diff) |
Merge pull request #8032 from AndersBillLinden/fix-putting-boolean-key-in-array
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 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; |