mirror of
https://github.com/nextcloud/server.git
synced 2026-03-07 07:50:57 -05:00
Merge pull request #44508 from nextcloud/backport/39367/stable27
[stable27] handle more exceptions in AmazonS3::fopen
This commit is contained in:
commit
f85ce2d803
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