diff --git a/forms/Form.php b/forms/Form.php index c6e84b33f..1c2398100 100644 --- a/forms/Form.php +++ b/forms/Form.php @@ -865,6 +865,8 @@ class Form extends RequestHandler { */ function getData() { $dataFields = $this->fields->dataFields(); + $data = array(); + if($dataFields){ foreach($dataFields as $field) { if($field->Name()) {