Skip to content
This repository was archived by the owner on Nov 25, 2020. It is now read-only.

Commit 094845d

Browse files
committed
Fix FileReaderResponse
1 parent e7f44ab commit 094845d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

core/src/core/src/pydio/Core/Http/Response/FileReaderResponse.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ public function readFile($node = null, $filePath = null, $data = null, $headerTy
186186
$filePathOrData = $filePath;
187187
}
188188

189-
if(!$data === null && !file_exists($filePathOrData)){
189+
if($data === null && !file_exists($filePathOrData)){
190190
throw new \Exception("File $filePathOrData not found!");
191191
}
192192
$confGzip = ConfService::getGlobalConf("GZIP_COMPRESSION");
@@ -217,7 +217,7 @@ public function readFile($node = null, $filePath = null, $data = null, $headerTy
217217
ApplicationState::safeIniSet('zlib.output_compression', 'Off');
218218
}
219219

220-
$isFile = ($data !== null) && !$confGzip;
220+
$isFile = ($data === null) && !$confGzip;
221221
if ($byteLength == -1) {
222222
if ($data !== null) {
223223
$size = strlen($data);

0 commit comments

Comments
 (0)