CCompareValidator misstyping




	protected function compareValues($value,$value2)

	{

		switch($this->operator)

		{

			case '=':

			case '==':

				return ($this->strict && $value===$compareValue) || (!$this->strict && $value==$compareValue);

			case '!=':

				return ($this->strict && $value!==$compareValue) || (!$this->strict && $value!=$compareValue);

			case '>':

				return $value>$compareValue;

		}

	}

  • great! but this code was not used by validator, why!?

Thanks. Actually this method is not used. I just removed it.