Skip to content
This repository was archived by the owner on Jan 4, 2020. It is now read-only.

Commit 41f9b72

Browse files
committed
修正一处错误
1 parent 1d9aa58 commit 41f9b72

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

ThinkPHP/Common/functions.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -332,7 +332,7 @@ function I($name,$default='',$filter=null,$datas=null) {
332332

333333
foreach($filters as $filter){
334334
if(function_exists($filter)) {
335-
$data = is_array($data) ? array_map_recursive($filter,$data) : filter($data); // 参数过滤
335+
$data = is_array($data) ? array_map_recursive($filter,$data) : $filter($data); // 参数过滤
336336
}elseif(0===strpos($filter,'/')){
337337
// 支持正则验证
338338
if(1 !== preg_match($filter,(string)$data)){

0 commit comments

Comments
 (0)