改进一处警告错误

This commit is contained in:
thinkphp
2016-02-18 17:49:35 +08:00
parent 2fcf0b3ee4
commit 58e57e1581

View File

@@ -1177,7 +1177,7 @@ class Model
protected function checkValidate($value, $val, &$data)
{
$rule = $val[0];
$msg = $val[1];
$msg = isset($val[1]) ? $val[1] : '';
$type = isset($val[2]) ? $val[2] : 'regex';
$options = isset($val[3]) ? $val[3] : [];
if ($rule instanceof \Closure) {