Skip to content

Commit

Permalink
Fix issue with form keys
Browse files Browse the repository at this point in the history
  • Loading branch information
gkueny committed Apr 8, 2019
1 parent fc0ecde commit e609623
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Processor/AbstractUploadProcessor.php
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ protected function getFormKeys(FormInterface $form)
{
$keys = array();
foreach ($form->all() as $child) {
$keys[$child->getName()] = count($child->all() > 0) ? $this->getFormKeys($child) : null;
$keys[$child->getName()] = $child->all() && count($child->all() > 0) ? $this->getFormKeys($child) : null;
}

return $keys;
Expand Down

0 comments on commit e609623

Please sign in to comment.