From 1ca215dff48200ed3758050577c78af436b3fe4a Mon Sep 17 00:00:00 2001 From: Qiang Xue Date: Tue, 13 Aug 2013 11:59:21 -0400 Subject: [PATCH] Added default value of Validator::attributes. --- framework/yii/validators/Validator.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/framework/yii/validators/Validator.php b/framework/yii/validators/Validator.php index c519706..9853c42 100644 --- a/framework/yii/validators/Validator.php +++ b/framework/yii/validators/Validator.php @@ -74,7 +74,7 @@ abstract class Validator extends Component /** * @var array list of attributes to be validated. */ - public $attributes; + public $attributes = array(); /** * @var string the user-defined error message. It may contain the following placeholders which * will be replaced accordingly by the validator: