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:
authorAnders Lindén <anderslinden@bredband.net>2015-06-03 00:16:46 +0300
committerAnders Lindén <anderslinden@bredband.net>2015-06-03 00:16:46 +0300
commitd2de02d911e192f786bc1b316298da38fb593fdd (patch)
treef0d03a0a0784e8552a8f908c483588d721a225cc /core/Filechecks.php
parentbc703344b4f8b5ce24c2c561a3c4d62bdc57cf66 (diff)
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 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;