From 6b4b9e978a52d3469c11c7c864ba0598bef3a2f9 Mon Sep 17 00:00:00 2001 From: Sam Minnee Date: Fri, 31 Aug 2007 00:27:59 +0000 Subject: [PATCH] Fixed notice-level error git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@41095 467b73ca-7a2a-4603-9d3b-597d59a354a9 --- forms/TableField.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/forms/TableField.php b/forms/TableField.php index 7cce4233d..9ab8d5d24 100644 --- a/forms/TableField.php +++ b/forms/TableField.php @@ -415,6 +415,7 @@ class TableField extends TableListField { */ function sortData($data, $recordID = null) { if($data) { + $dataObjects = array(); foreach($data as $field => $rowData) { $i = 0; $blank = 0; @@ -432,8 +433,8 @@ class TableField extends TableListField { // TODO ADD stuff for removing rows with incomplete data } + return $dataObjects; } - return $dataObjects; } /**