Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthieu Aubry <matt@piwik.org>2015-06-03 07:36:45 +0300
committerMatthieu Aubry <matt@piwik.org>2015-06-03 07:36:45 +0300
commitc644d09b69c8ea58e5f656e3ff64b4bddf45ef56 (patch)
treed002ecfc32b2120500c8c338896650458649601e /core/Filechecks.php
parent1664da1122849efbdd81a8c918678a052c4f539c (diff)
parentd2de02d911e192f786bc1b316298da38fb593fdd (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.php7
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;