Permalink
Browse files

Changed InArray for InArrayValidator that is used as alias

  • Loading branch information...
1 parent 294a7d1 commit 555519356b7322b0807de1f3dff1f2be937128d7 igor committed Sep 20, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 library/Zend/Form/Element/Select.php
@@ -81,9 +81,9 @@ public function setValueOptions(array $options)
{
$this->valueOptions = $options;
- // Update InArray validator haystack
+ // Update InArrayValidator validator haystack
if (!is_null($this->validator)) {
- $validator = $this->validator instanceof InArray ? $this->validator : $this->validator->getValidator();
+ $validator = $this->validator instanceof InArrayValidator ? $this->validator : $this->validator->getValidator();
$validator->setHaystack($this->getValueOptionsValues());
}

0 comments on commit 5555193

Please sign in to comment.