mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-01 20:52:48 +08:00
解决 php7 数组指针问题
数组存在key()方法无法正确获得预定值
This commit is contained in:
@@ -974,6 +974,7 @@ class Request
|
||||
$filter[] = $default;
|
||||
if (is_array($data)) {
|
||||
array_walk_recursive($data, [$this, 'filterValue'], $filter);
|
||||
reset($data);
|
||||
} else {
|
||||
$this->filterValue($data, $name, $filter);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user