mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-01 12:42:48 +08:00
修正validate类一处变量未定义错误
This commit is contained in:
@@ -498,7 +498,7 @@ class Validate
|
||||
default:
|
||||
if (isset(self::$type[$rule])) {
|
||||
// 注册的验证规则
|
||||
$result = call_user_func_array(self::$type[$rule], [$value, &$data]);
|
||||
$result = call_user_func_array(self::$type[$rule], [$value]);
|
||||
} else {
|
||||
// 正则验证
|
||||
$result = $this->regex($value, $rule);
|
||||
|
||||
Reference in New Issue
Block a user