diff options
author | Robin Appelman <robin@icewind.nl> | 2016-11-29 15:29:02 +0100 |
---|---|---|
committer | Robin Appelman <robin@icewind.nl> | 2016-11-29 15:29:02 +0100 |
commit | 72a54ff9dee7d664de7a6866d433a5acf753edce (patch) | |
tree | 1b9c7e3787a4250a26557e2438c36760a814df22 /lib/public | |
parent | 8d81b9e6eb9f27b8b95f17b86bd3b1bdfddc122d (diff) | |
download | nextcloud-server-72a54ff9dee7d664de7a6866d433a5acf753edce.tar.gz nextcloud-server-72a54ff9dee7d664de7a6866d433a5acf753edce.zip |
prevent warning in StreamResponse
Signed-off-by: Robin Appelman <robin@icewind.nl>
Diffstat (limited to 'lib/public')
-rw-r--r-- | lib/public/AppFramework/Http/StreamResponse.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/public/AppFramework/Http/StreamResponse.php b/lib/public/AppFramework/Http/StreamResponse.php index e124bb4ccbf..b3ec5577e29 100644 --- a/lib/public/AppFramework/Http/StreamResponse.php +++ b/lib/public/AppFramework/Http/StreamResponse.php @@ -54,7 +54,7 @@ class StreamResponse extends Response implements ICallbackResponse { public function callback (IOutput $output) { // handle caching if ($output->getHttpResponseCode() !== Http::STATUS_NOT_MODIFIED) { - if (!(file_exists($this->filePath) || is_resource($this->filePath))) { + if (!(is_resource($this->filePath) || file_exists($this->filePath))) { $output->setHttpResponseCode(Http::STATUS_NOT_FOUND); } elseif ($output->setReadfile($this->filePath) === false) { $output->setHttpResponseCode(Http::STATUS_BAD_REQUEST); |