mirror of
https://github.com/nextcloud/server.git
synced 2026-06-10 09:13:19 -04:00
Merge pull request #44509 from nextcloud/backport/39367/stable26
[stable26] handle more exceptions in AmazonS3::fopen
This commit is contained in:
commit
e1ec00719d
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