diff options
Diffstat (limited to 'core')
-rw-r--r-- | core/Http.php | 4 |
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'); } |