Skip to content

Commit b3817e4

Browse files
committed
fix bug
1 parent 3785b58 commit b3817e4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Gustiawan/FormBuilder/Form.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ public function __construct(array $options = [])
5454
{
5555
$this->action = $options['action'];
5656
$this->method = $options['method'];
57-
$this->data = $options['data'];
57+
$this->data = array_key_exists("data", $options) ? $options['data'] : null;
5858

5959
return $this;
6060
}

0 commit comments

Comments
 (0)