fix: "PHP Notice: Uninitialized string offset: 0 in ..."

This commit is contained in:
catroll 2018-03-21 16:11:53 +08:00
parent b5189c5590
commit 83464a80e9

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