Permalink
Browse files

Fix FileReaderResponse

  • Loading branch information...
1 parent e7f44ab commit 094845d6567abf0a2d7303d767c3f8f209533de4 @cdujeu cdujeu committed Oct 11, 2016
Showing with 2 additions and 2 deletions.
  1. +2 −2 core/src/core/src/pydio/Core/Http/Response/FileReaderResponse.php
@@ -186,7 +186,7 @@ public function readFile($node = null, $filePath = null, $data = null, $headerTy
$filePathOrData = $filePath;
}
- if(!$data === null && !file_exists($filePathOrData)){
+ if($data === null && !file_exists($filePathOrData)){
throw new \Exception("File $filePathOrData not found!");
}
$confGzip = ConfService::getGlobalConf("GZIP_COMPRESSION");
@@ -217,7 +217,7 @@ public function readFile($node = null, $filePath = null, $data = null, $headerTy
ApplicationState::safeIniSet('zlib.output_compression', 'Off');
}
- $isFile = ($data !== null) && !$confGzip;
+ $isFile = ($data === null) && !$confGzip;
if ($byteLength == -1) {
if ($data !== null) {
$size = strlen($data);

0 comments on commit 094845d

Please sign in to comment.