Permalink
Browse files

Removed redundant check and fixed comment per mwop

  • Loading branch information...
timdev committed Oct 1, 2012
1 parent c73556d commit 95a8e7d54bdf0ea829a7bed1ce8bd86517b2e9fe
Showing with 2 additions and 2 deletions.
  1. +2 −2 library/Zend/Form/Element/MultiCheckbox.php
@@ -63,8 +63,8 @@ public function setValueOptions(array $options)
{
$this->valueOptions = $options;
- // Update InArray validator haystack
- if (!is_null($this->validator) && $this->validator instanceof ExplodeValidator) {
+ // Update Explode validator haystack
+ if ($this->validator instanceof ExplodeValidator) {
$validator = $this->validator->getValidator();
$validator->setHaystack($this->getValueOptionsValues());
}

0 comments on commit 95a8e7d

Please sign in to comment.