Skip to content

Commit 8ad6024

Browse files
committed
Fix Bug
1 parent ab209f9 commit 8ad6024

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

source/Config.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ public static function get($key, $default = null)
9595
}
9696
}
9797
for ($index += 1; $index < $count; $index++) {
98-
if (!isset($config[$keys[$index]])) {
98+
if (!is_array($config) || !isset($config[$keys[$index]])) {
9999
return $default;
100100
}
101101
$config = $config[$keys[$index]];

0 commit comments

Comments
 (0)