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:
Geert De Deckere 2009-06-18 10:21:49 +02:00
parent 00e9525975
commit 766d6fefc6

View file

@ -493,7 +493,7 @@ final class Kohana {
*/
public static function list_files($directory = NULL)
{
if ( ! empty($directory))
if ($directory !== NULL)
{
// Add the directory separator
$directory .= DIRECTORY_SEPARATOR;