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:
-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;