diff --git a/phpBB/phpbb/storage/adapter/local.php b/phpBB/phpbb/storage/adapter/local.php index f963f282c0..66f5b32d37 100644 --- a/phpBB/phpbb/storage/adapter/local.php +++ b/phpBB/phpbb/storage/adapter/local.php @@ -257,7 +257,7 @@ class local implements adapter_interface, stream_interface $parts = str_split($hash, 2); $parts = array_slice($parts, 0, $this->dir_depth); - return implode(DIRECTORY_SEPARATOR, $parts) . DIRECTORY_SEPARATOR; + return (!empty($parts)) ? implode(DIRECTORY_SEPARATOR, $parts) . DIRECTORY_SEPARATOR : ''; } /**