8
0
Fork 0

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

Dieser Commit ist enthalten in:
catroll 2018-03-21 16:11:53 +08:00
Ursprung b5189c5590
Commit 83464a80e9
1 geänderte Dateien mit 2 neuen und 0 gelöschten Zeilen

Datei anzeigen

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