mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-08 04:18:52 +00:00
[ticket/15371] Return an empty string if the array has no elements
PHPBB3-15371
This commit is contained in:
parent
5edb8f0b5b
commit
7a4dd368b5
1 changed files with 1 additions and 1 deletions
|
@ -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 : '';
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Reference in a new issue