From dbc7d3ae7c97d624e5ad3e1e58f59b911991c79b Mon Sep 17 00:00:00 2001 From: Rsplwe Date: Mon, 3 Apr 2023 21:59:59 +0800 Subject: [PATCH] Update lib/private/Files/ObjectStore/S3.php MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Co-authored-by: Côme Chilliet <91878298+come-nc@users.noreply.github.com> Signed-off-by: Rsplwe --- lib/private/Files/ObjectStore/S3.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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'); } -- 2.39.5