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:
authormattab <matthieu.aubry@gmail.com>2014-01-21 04:47:15 +0400
committermattab <matthieu.aubry@gmail.com>2014-01-21 04:47:15 +0400
commitd5e4c58622a1f3f5c099d02ad5eb651d2d2bc128 (patch)
tree3a3cfa6a40930e56e97e66ee044aec6dd2e5e972 /core/Filechecks.php
parent73934d9fc9d610e942a4ab5c578f20e8ece81bff (diff)
prevent small notice if file is there but not readable / stat'able
Diffstat (limited to 'core/Filechecks.php')
-rw-r--r--core/Filechecks.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/Filechecks.php b/core/Filechecks.php
index 8d63c7fbf9..30c519a1ca 100644
--- a/core/Filechecks.php
+++ b/core/Filechecks.php
@@ -135,7 +135,7 @@ class Filechecks
foreach ($files as $path => $props) {
$file = PIWIK_INCLUDE_PATH . '/' . $path;
- if (!file_exists($file)) {
+ if (!file_exists($file) || !is_readable($file)) {
$messages[] = Piwik::translate('General_ExceptionMissingFile', $file);
} else if (filesize($file) != $props[0]) {
if (!$hasMd5 || in_array(substr($path, -4), array('.gif', '.ico', '.jpg', '.png', '.swf'))) {