Changeset 5838
- Timestamp:
- 11/04/07 15:20:57 (10 months ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/lib/validator/sfValidatorChoiceMany.class.php
r5757 r5838 29 29 } 30 30 31 $choices = $this->getOption('choices'); 32 if ($choices instanceof sfCallable) 33 { 34 $choices = $choices->call(); 35 } 36 31 37 foreach ($values as $value) 32 38 { 33 if (!in_array($value, $ this->getOption('choices')))39 if (!in_array($value, $choices)) 34 40 { 35 41 throw new sfValidatorError($this, 'invalid', array('value' => $value));