summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRsplwe <i@rsplwe.com>2023-04-03 21:59:59 +0800
committerGitHub <noreply@github.com>2023-04-03 21:59:59 +0800
commit5c6f35832c3585d4bd021dc2025243023da230bc (patch)
tree2b2cb3abae415e409d8c20d133082a2ce2347a5b
parentd85e6239169458532e68d0823978c512398faa01 (diff)
downloadnextcloud-server-5c6f35832c3585d4bd021dc2025243023da230bc.tar.gz
nextcloud-server-5c6f35832c3585d4bd021dc2025243023da230bc.zip
Update lib/private/Files/ObjectStore/S3.php
Co-authored-by: Côme Chilliet <91878298+come-nc@users.noreply.github.com> Signed-off-by: Rsplwe <i@rsplwe.com>
-rw-r--r--lib/private/Files/ObjectStore/S3.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/Files/ObjectStore/S3.php b/lib/private/Files/ObjectStore/S3.php
index e760b8b1572..76eee2bc962 100644
--- a/lib/private/Files/ObjectStore/S3.php
+++ b/lib/private/Files/ObjectStore/S3.php
@@ -81,7 +81,7 @@ class S3 implements IObjectStore, IObjectStoreMultiPartUpload {
'MaxParts' => 1000,
'PartNumberMarker' => $partNumberMarker
]);
- $parts = array_merge($parts, $result->get('Parts'));
+ $parts = array_merge($parts, $result->get('Parts') ?? []);
$isTruncated = $result->get('IsTruncated');
$partNumberMarker = $result->get('NextPartNumberMarker');
}