From e109d8e67a6be3ec513666f68ed515f7b3c8deef Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Markus=20H=C3=B6lzle?= Date: Wed, 3 Mar 2021 23:15:46 +0100 Subject: [PATCH] [BUGFIX] Fix create folders --- Classes/Driver/AmazonS3Driver.php | 2 +- Documentation/Settings.cfg | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Classes/Driver/AmazonS3Driver.php b/Classes/Driver/AmazonS3Driver.php index 5d809081..a8a8c08c 100644 --- a/Classes/Driver/AmazonS3Driver.php +++ b/Classes/Driver/AmazonS3Driver.php @@ -1197,7 +1197,7 @@ protected function prefixExists(string $identifier): bool return true; } $objects = $this->getListObjects($identifier, ['MaxKeys' => 1]); - return count($objects) > 0; + return is_array($objects['Contents']) ? count($objects['Contents']) > 0 : false; } /** diff --git a/Documentation/Settings.cfg b/Documentation/Settings.cfg index 3664cd1b..fda1d2a0 100644 --- a/Documentation/Settings.cfg +++ b/Documentation/Settings.cfg @@ -1,6 +1,6 @@ [general] -project = Extension name +project = Amazon AWS S3 FAL driver (CDN) copyright = 2021 different.technology project_home = https://github.com/andersundsehr/aus_driver_amazon_s3 project_issues = https://github.com/andersundsehr/aus_driver_amazon_s3/issues