Task #6727 » ConjunctionValidator.diff

Lukas Lentner, 2010-03-07 17:33

View differences:

ConjunctionValidator.php 2010-03-07 17:28:54.000000000 +0100
44 44
	 * @api
45 45
	 */
46 46
	public function isValid($value) {
47
		$result = TRUE;
48 47
		foreach ($this->validators as $validator) {
49 48
			if ($validator->isValid($value) === FALSE) {
50 49
				$this->errors = array_merge($this->errors, $validator->getErrors());
51
				$result = FALSE;
50
				return FALSE;
52 51
			}
53 52
		}
54
		return $result;
53
		return TRUE;
55 54
	}
56 55
}
57 56

  
58
?>
57
?>
(1-1/2)