diff --git a/src/formdata/FormDataRenderer.php b/src/formdata/FormDataRenderer.php index a305f94..60fab2d 100644 --- a/src/formdata/FormDataRenderer.php +++ b/src/formdata/FormDataRenderer.php @@ -69,7 +69,7 @@ private function processElements(StaticNodeList $elements): void { private function processInput(DOMElement $element): void { $name = $this->nameToLookupKey($element); - if (!$this->form->has($name)) { + if ($name === '' || !$this->form->has($name)) { return; } @@ -102,7 +102,7 @@ private function processInput(DOMElement $element): void { private function processTextArea(DOMElement $element): void { $name = $this->nameToLookupKey($element); - if (!$this->form->has($name)) { + if ($name === '' || !$this->form->has($name)) { return; }