Skip to content

Commit

Permalink
[BUGFIX] File doesn't exist, if there is no Identifier (#50)
Browse files Browse the repository at this point in the history
FIXES #47, #48
  • Loading branch information
TildBJ authored and Lagerregal committed Feb 1, 2019
1 parent 5318bce commit cbe73b5
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 @@ -295,7 +295,7 @@ public function getFileInfoByIdentifier($fileIdentifier, array $propertiesToExtr
*/
public function fileExists($identifier)
{
if (substr($identifier, -1) === '/') {
if (substr($identifier, -1) === '/' || $identifier === '') {
return false;
}
return $this->objectExists($identifier);
Expand Down

0 comments on commit cbe73b5

Please sign in to comment.