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

Cette révision appartient à :
catroll 2018-03-21 16:11:53 +08:00
Parent b5189c5590
révision 83464a80e9
1 fichiers modifiés avec 2 ajouts et 0 suppressions

Voir le fichier

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