Skip to content
This repository has been archived by the owner on May 8, 2024. It is now read-only.

Commit

Permalink
Update factory to ensure correct order
Browse files Browse the repository at this point in the history
  • Loading branch information
davidwindell committed Jun 18, 2013
1 parent 35ea125 commit d501083
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions library/Zend/InputFilter/Factory.php
Original file line number Diff line number Diff line change
Expand Up @@ -197,8 +197,8 @@ public function createInput($inputSpecification)
break;
case 'required':
$input->setRequired($value);
if (!isset($inputSpecification['allow_empty'])) {
$input->setAllowEmpty(!$value);
if (isset($inputSpecification['allow_empty'])) {
$input->setAllowEmpty($inputSpecification['allow_empty']);
}
break;
case 'allow_empty':
Expand Down

0 comments on commit d501083

Please sign in to comment.