From 1e87f09a6b187413c001d213f3c50ce626566acb Mon Sep 17 00:00:00 2001
From: johan Vlaar <johan@adivare.nl>
Date: Tue, 2 Jul 2024 13:27:30 +0200
Subject: [PATCH] Fixes #528 set default options to empty array

---
 src/Configuration/ElFinderConfigurationReader.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/Configuration/ElFinderConfigurationReader.php b/src/Configuration/ElFinderConfigurationReader.php
index 8fc0def..aedebcf 100644
--- a/src/Configuration/ElFinderConfigurationReader.php
+++ b/src/Configuration/ElFinderConfigurationReader.php
@@ -282,7 +282,7 @@ private function configureFlysystem($opt, $adapter, $serviceName)
                     ];
                 }
                 $client     = new S3Client($s3Options);
-                $filesystem = new Filesystem(new AwsS3v3($client, $opt['aws_s3_v3']['bucket_name'], $opt['aws_s3_v3']['optional_prefix'], null, null, $opt['aws_s3_v3']['options']));
+                $filesystem = new Filesystem(new AwsS3v3($client, $opt['aws_s3_v3']['bucket_name'], $opt['aws_s3_v3']['optional_prefix'], null, null, $opt['aws_s3_v3']['options'] ?? []));
 
                 break;
             case 'copy_com':