Merge pull request #39017 from nextcloud/fix/s3/verify_bucket_exists

fix(s3): fix handling verify_bucket_exists parameter
This commit is contained in:
Thomas Citharel 2023-08-31 23:10:33 +02:00 committed by GitHub
commit 065e1e82c3
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;
}