Skip to content
This repository has been archived by the owner on Jan 30, 2020. It is now read-only.

Commit

Permalink
Merge branch 'feature/form-collection' of https://github.com/bakura10…
Browse files Browse the repository at this point in the history
…/zf2 into feature/form-collection
  • Loading branch information
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/BaseInputFilter.php
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ public function add($input, $name = null)
));
}

if (empty($name)) {
if (is_null($name) || $name === '') {
$name = $input->getName();
}
$this->inputs[$name] = $input;
Expand Down

0 comments on commit ee91e56

Please sign in to comment.