Merge pull request #47 from kalixi/master

fix: "PHP Notice:  Uninitialized string offset: 0 in ..."
This commit is contained in:
Stéphane Goetz 2018-05-05 11:16:49 +02:00 committed by GitHub
commit eae3f31d65
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -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);