Browse Source

fixed equality check in validator.

Taylor Otwell 13 years ago
parent
commit
9b8942fa1d
1 changed files with 1 additions and 1 deletions
  1. 1 1
      system/validator.php

+ 1 - 1
system/validator.php

@@ -69,7 +69,7 @@ class Validator {
 			$rule->validate($this->attributes, $this->errors);
 		}
 
-		return count($this->errors->messages) === 0;
+		return count($this->errors->messages) == 0;
 	}
 
 	/**