Skip to content

Commit

Permalink
Fix MultiCheckbox useHiddenElement type error
Browse files Browse the repository at this point in the history
  • Loading branch information
AlloVince committed Jul 6, 2012
1 parent e3910e9 commit a1f7d65
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion library/Zend/Form/View/Helper/FormMultiCheckbox.php
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@ public function render(ElementInterface $element)
$rendered = $this->renderOptions($element, $options, $selectedOptions, $attributes);

// Render hidden element
$useHiddenElement = $element->useHiddenElement()
$useHiddenElement = method_exists($element, 'useHiddenElement') && $element->useHiddenElement()
? $element->useHiddenElement()
: $this->useHiddenElement;

Expand Down

0 comments on commit a1f7d65

Please sign in to comment.