Browse Source

Merge pull request #508 from sergon/patch-2

Update CompareValidator.php
tags/2.0.0-alpha
Qiang Xue 11 years ago
parent
commit
6d6fea4737
  1. 2
      framework/yii/validators/CompareValidator.php

2
framework/yii/validators/CompareValidator.php

@ -58,7 +58,7 @@ class CompareValidator extends Validator
* - `<`: validates to see if the value being validated is less than the value being compared with.
* - `<=`: validates to see if the value being validated is less than or equal to the value being compared with.
*/
public $operator = '=';
public $operator = '==';
/**
* @var string the user-defined error message. It may contain the following placeholders which
* will be replaced accordingly by the validator:

Loading…
Cancel
Save