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:
authordiosmosis <diosmosis@users.noreply.github.com>2021-01-05 05:35:01 +0300
committerGitHub <noreply@github.com>2021-01-05 05:35:01 +0300
commitb4c17606e57c34f7f8369e2ce0892fb2dbe33793 (patch)
treef9b3e43adfd873c934de2625eda9d1a4affeb6ff /core
parent65faef9b341e61466e53678dcc1df7a949c7428c (diff)
better fix + update expected screenshots (#17043)
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');
}