BUGFIX Fixed potential PHP notice in TableField

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@71326 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
Sean Harvey 2009-02-03 23:20:58 +00:00
parent b34713dffc
commit f6add2dc75

View File

@ -279,9 +279,9 @@ class TableField extends TableListField {
}
$savedObj = $this->saveData($dataObjects, $this->editExisting);
if($savedObj && isset($newFields)) {
if($savedObj && isset($newFields) && $newFields) {
$savedObj = $this->saveData($newFields,false);
} else if(isset($newFields)) {
} else if(isset($newFields) && $newFields) {
$savedObj = $this->saveData($newFields,false);
}
$items = $this->sourceItems();