diff --git a/framework/yii/base/Model.php b/framework/yii/base/Model.php index e9fc032..ae739fc 100644 --- a/framework/yii/base/Model.php +++ b/framework/yii/base/Model.php @@ -476,7 +476,7 @@ class Model extends Component implements \IteratorAggregate, \ArrayAccess * @param string $attribute attribute name * @param string $error new error message */ - public function addError($attribute, $error) + public function addError($attribute, $error = '') { $this->_errors[$attribute][] = $error; }