diff --git a/libs/Tree/Directory.php b/libs/Tree/Directory.php index f33e65f..5a9f28d 100644 --- a/libs/Tree/Directory.php +++ b/libs/Tree/Directory.php @@ -32,6 +32,8 @@ class Directory extends Entry implements \ArrayAccess, \IteratorAggregate continue; } + if (!$name) continue; + if ($name[0] == '-') { if (is_numeric($name[1])) { $exploded = explode('_', $name);