|
|
@ -267,7 +267,8 @@ class Validator extends Component |
|
|
|
$result = $this->validateValue($value); |
|
|
|
$result = $this->validateValue($value); |
|
|
|
if (empty($result)) { |
|
|
|
if (empty($result)) { |
|
|
|
return true; |
|
|
|
return true; |
|
|
|
} else { |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
list($message, $params) = $result; |
|
|
|
list($message, $params) = $result; |
|
|
|
$params['attribute'] = Yii::t('yii', 'the input value'); |
|
|
|
$params['attribute'] = Yii::t('yii', 'the input value'); |
|
|
|
$params['value'] = is_array($value) ? 'array()' : $value; |
|
|
|
$params['value'] = is_array($value) ? 'array()' : $value; |
|
|
@ -275,7 +276,6 @@ class Validator extends Component |
|
|
|
|
|
|
|
|
|
|
|
return false; |
|
|
|
return false; |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|
* Validates a value. |
|
|
|
* Validates a value. |
|
|
|