fix a bug

This commit is contained in:
Wisp X 2022-05-07 09:56:55 +08:00
parent 10dea5cffd
commit fba0d77e7b

View File

@ -147,7 +147,7 @@ class Utils
{
foreach ($array as &$value) {
if (is_array($value)) {
$value = self::filter($value);
$value = self::filter($value, $callback, $mode);
}
}
return array_filter($array, $callback, $mode);