mirror of
https://github.com/nextcloud/server.git
synced 2026-02-20 00:12:30 -05:00
fix SeekableHttpStream::stream_stat errors on failed open
Signed-off-by: Robin Appelman <robin@icewind.nl>
This commit is contained in:
parent
7c9edbff32
commit
b0e663fa28
1 changed files with 3 additions and 1 deletions
|
|
@ -219,7 +219,9 @@ class SeekableHttpStream implements File {
|
|||
public function stream_stat() {
|
||||
if ($this->getCurrent()) {
|
||||
$stat = fstat($this->getCurrent());
|
||||
$stat['size'] = $this->totalSize;
|
||||
if ($stat) {
|
||||
$stat['size'] = $this->totalSize;
|
||||
}
|
||||
return $stat;
|
||||
} else {
|
||||
return false;
|
||||
|
|
|
|||
Loading…
Reference in a new issue