diff --git a/forms/TableField.php b/forms/TableField.php index 9ab8d5d24..647354025 100644 --- a/forms/TableField.php +++ b/forms/TableField.php @@ -414,6 +414,7 @@ class TableField extends TableListField { * organises the data in the appropriate manner for saving */ function sortData($data, $recordID = null) { + $dataObjects = array(); if($data) { $dataObjects = array(); foreach($data as $field => $rowData) {