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
path: root/core
diff options
context:
space:
mode:
Diffstat (limited to 'core')
-rw-r--r--core/Http.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/Http.php b/core/Http.php
index 793371aa9f..60ad0f595e 100644
--- a/core/Http.php
+++ b/core/Http.php
@@ -713,8 +713,8 @@ class Http
@fclose($file);
$fileSize = filesize($destinationPath);
- if ((($contentLength > 0) && ($fileLength != $contentLength))
- || ($fileSize != $fileLength)
+ if ($contentLength > 0
+ && $fileSize != $contentLength
) {
throw new Exception('File size error: ' . $destinationPath . '; expected ' . $contentLength . ' bytes; received ' . $fileLength . ' bytes; saved ' . $fileSize . ' bytes to file');
}