From e609623762d7b6bba21e99073b21b094134c3e03 Mon Sep 17 00:00:00 2001 From: Gaetan Kueny Date: Mon, 8 Apr 2019 09:47:53 +0200 Subject: [PATCH] Fix issue with form keys --- Processor/AbstractUploadProcessor.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Processor/AbstractUploadProcessor.php b/Processor/AbstractUploadProcessor.php index 4e8ad33..3fb2a70 100644 --- a/Processor/AbstractUploadProcessor.php +++ b/Processor/AbstractUploadProcessor.php @@ -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;