mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-01 22:40:39 +02:00
[ticket/15371] Return an empty string if the array has no elements
PHPBB3-15371
This commit is contained in:
@@ -257,7 +257,7 @@ class local implements adapter_interface, stream_interface
|
|||||||
$parts = str_split($hash, 2);
|
$parts = str_split($hash, 2);
|
||||||
$parts = array_slice($parts, 0, $this->dir_depth);
|
$parts = array_slice($parts, 0, $this->dir_depth);
|
||||||
|
|
||||||
return implode(DIRECTORY_SEPARATOR, $parts) . DIRECTORY_SEPARATOR;
|
return (!empty($parts)) ? implode(DIRECTORY_SEPARATOR, $parts) . DIRECTORY_SEPARATOR : '';
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Reference in New Issue
Block a user