Skip to content

Commit 52c0b67

Browse files
icewind1991backportbot[bot]
authored andcommitted
fix SeekableHttpStream::stream_stat errors on failed open
Signed-off-by: Robin Appelman <[email protected]> [skip ci]
1 parent 1c3f4d7 commit 52c0b67

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lib/private/Files/Stream/SeekableHttpStream.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,9 @@ public function stream_tell() {
219219
public function stream_stat() {
220220
if ($this->getCurrent()) {
221221
$stat = fstat($this->getCurrent());
222-
$stat['size'] = $this->totalSize;
222+
if ($stat) {
223+
$stat['size'] = $this->totalSize;
224+
}
223225
return $stat;
224226
} else {
225227
return false;

0 commit comments

Comments
 (0)