fix SeekableHttpStream::stream_stat errors on failed open

Signed-off-by: Robin Appelman <robin@icewind.nl>
pull/39367/head
Robin Appelman 3 years ago
parent 7c9edbff32
commit b0e663fa28
No known key found for this signature in database
GPG Key ID: 42B69D8A64526EFB
  1. 4
      lib/private/Files/Stream/SeekableHttpStream.php

@ -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…
Cancel
Save