Skip to content

Commit

Permalink
fix SeekableHttpStream::stream_stat errors on failed open
Browse files Browse the repository at this point in the history
Signed-off-by: Robin Appelman <[email protected]>
  • Loading branch information
icewind1991 committed Jul 13, 2023
1 parent 7c9edbf commit b0e663f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/private/Files/Stream/SeekableHttpStream.php
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,9 @@ public function stream_tell() {
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;
Expand Down

0 comments on commit b0e663f

Please sign in to comment.