diff options
author | mattab <matthieu.aubry@gmail.com> | 2014-01-21 04:47:15 +0400 |
---|---|---|
committer | mattab <matthieu.aubry@gmail.com> | 2014-01-21 04:47:15 +0400 |
commit | d5e4c58622a1f3f5c099d02ad5eb651d2d2bc128 (patch) | |
tree | 3a3cfa6a40930e56e97e66ee044aec6dd2e5e972 /core/Filechecks.php | |
parent | 73934d9fc9d610e942a4ab5c578f20e8ece81bff (diff) |
prevent small notice if file is there but not readable / stat'able
Diffstat (limited to 'core/Filechecks.php')
-rw-r--r-- | core/Filechecks.php | 2 |
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'))) { |