Merge pull request #40186 from nextcloud/backport/39017/stable27

[stable27] fix(s3): fix handling verify_bucket_exists parameter
This commit is contained in:
Arthur Schiwon 2023-09-05 19:13:02 +02:00 committed by GitHub
commit c7d6320fbf
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -92,7 +92,7 @@ trait S3ConnectionTrait {
if (!isset($params['port']) || $params['port'] === '') {
$params['port'] = (isset($params['use_ssl']) && $params['use_ssl'] === false) ? 80 : 443;
}
$params['verify_bucket_exists'] = empty($params['verify_bucket_exists']) ? true : $params['verify_bucket_exists'];
$params['verify_bucket_exists'] = $params['verify_bucket_exists'] ?? true;
$this->params = $params;
}