From: Rsplwe Date: Mon, 3 Apr 2023 13:59:59 +0000 (+0800) Subject: Update lib/private/Files/ObjectStore/S3.php X-Git-Tag: v26.0.3rc1~11^2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=refs%2Fpull%2F37776%2Fhead;p=nextcloud-server.git Update lib/private/Files/ObjectStore/S3.php Co-authored-by: Côme Chilliet <91878298+come-nc@users.noreply.github.com> Signed-off-by: Rsplwe --- 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'); }