fix: "PHP Notice: Uninitialized string offset: 0 in ..."
This commit is contained in:
parent
b5189c5590
commit
83464a80e9
@ -32,6 +32,8 @@ class Directory extends Entry implements \ArrayAccess, \IteratorAggregate
|
|||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!$name) continue;
|
||||||
|
|
||||||
if ($name[0] == '-') {
|
if ($name[0] == '-') {
|
||||||
if (is_numeric($name[1])) {
|
if (is_numeric($name[1])) {
|
||||||
$exploded = explode('_', $name);
|
$exploded = explode('_', $name);
|
||||||
|
Loading…
Reference in New Issue
Block a user