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

Commit

Permalink
Bug fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
bakura10 committed Jul 1, 2012
1 parent e81953c commit 7716245
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 (is_null($name)) {
if (is_null($name) || $name === '') {
$name = $input->getName();
}
$this->inputs[$name] = $input;
Expand Down

0 comments on commit 7716245

Please sign in to comment.