Skip to content

Commit b4de0fb

Browse files
authored
Merge 8393c92 into 9ce35d7
2 parents 9ce35d7 + 8393c92 commit b4de0fb

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

inc/class-stream-wrapper.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -723,9 +723,13 @@ public function dir_readdir() {
723723
$this->objectIterator->next();
724724

725725
// Remove the prefix from the result to emulate other stream wrappers.
726-
return $this->openedBucketPrefix
726+
$retVal = $this->openedBucketPrefix
727727
? substr( $result, strlen( $this->openedBucketPrefix ) )
728728
: $result;
729+
if ( $retVal === '' ) {
730+
$retVal = false;
731+
}
732+
return $retVal;
729733
}
730734

731735
private function formatKey( string $key ) : string {

s3-uploads.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
Plugin Name: S3 Uploads
55
Description: Store uploads in S3
66
Author: Human Made Limited
7-
Version: 3.0.6
7+
Version: 3.0.8
88
Author URI: https://hmn.md
99
*/
1010

0 commit comments

Comments
 (0)