Browse Source

Added default value of Validator::attributes.

tags/2.0.0-beta
Qiang Xue 11 years ago
parent
commit
1ca215dff4
  1. 2
      framework/yii/validators/Validator.php

2
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:

Loading…
Cancel
Save