From 282b8292a42321e587781b851bbbb3b054f9b82a Mon Sep 17 00:00:00 2001 From: Ingo Schommer Date: Fri, 14 Sep 2007 18:03:15 +0000 Subject: [PATCH] elofgren: In TableField::sortData() initialize 'dataObjects' to an empty array to prevent undefined variable errors when editing the name of a Security group that has no members. (merged from branches/gsoc) git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@41780 467b73ca-7a2a-4603-9d3b-597d59a354a9 --- forms/TableField.php | 1 + 1 file changed, 1 insertion(+) 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) {