Merge pull request #47 from kalixi/master
fix: "PHP Notice: Uninitialized string offset: 0 in ..."
This commit is contained in:
commit
eae3f31d65
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user