Error messages related to array value case changed.

This commit is contained in:
resurtm
2013-03-10 18:20:54 +06:00
parent 692390f2f5
commit f635a4c8a4
8 changed files with 9 additions and 15 deletions

View File

@@ -83,7 +83,7 @@ class CStringValidator extends CValidator
if(is_array($value))
{
// https://github.com/yiisoft/yii/issues/1955
$this->addError($object,$attribute,Yii::t('yii','{attribute} must not have array value.'));
$this->addError($object,$attribute,Yii::t('yii','{attribute} is invalid.'));
return;
}