Fixed a minor bug that would cause Kohana::list_files() to return invalid relative filenames for directories with the unlikely name "0".
This commit is contained in:
parent
00e9525975
commit
766d6fefc6
|
@ -493,7 +493,7 @@ final class Kohana {
|
||||||
*/
|
*/
|
||||||
public static function list_files($directory = NULL)
|
public static function list_files($directory = NULL)
|
||||||
{
|
{
|
||||||
if ( ! empty($directory))
|
if ($directory !== NULL)
|
||||||
{
|
{
|
||||||
// Add the directory separator
|
// Add the directory separator
|
||||||
$directory .= DIRECTORY_SEPARATOR;
|
$directory .= DIRECTORY_SEPARATOR;
|
||||||
|
|
Loading…
Reference in a new issue