Skip to content

Commit

Permalink
Merge pull request #149 from mogic-le/move-empty-folder
Browse files Browse the repository at this point in the history
  • Loading branch information
Kanti authored Jun 18, 2024
2 parents 5dcf086 + d8739c1 commit f16e2ba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Classes/Driver/AmazonS3Driver.php
Original file line number Diff line number Diff line change
Expand Up @@ -1487,7 +1487,7 @@ protected function resetIdentifierMap()
protected function getSubObjects($identifier, $recursive = true, $filter = self::FILTER_ALL)
{
$result = $this->getListObjects($identifier);
if (!is_array($result['Contents'])) {
if (!is_array($result['Contents'] ?? null)) {
return [];
}
return array_filter($result['Contents'], function (&$object) use ($identifier, $recursive, $filter) {
Expand Down

0 comments on commit f16e2ba

Please sign in to comment.