mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
MINOR: Fix PHP notices
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/branches/2.2@64625 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
226f7b230e
commit
a7bc06c656
@ -268,14 +268,14 @@ class TableField extends TableListField {
|
||||
// Sort into proper array
|
||||
$this->value = ArrayLib::invert($this->value);
|
||||
$dataObjects = $this->sortData($this->value, $record->ID);
|
||||
if($dataObjects['new']) {
|
||||
if(isset($dataObjects['new']) && $dataObjects['new']) {
|
||||
$newFields = $this->sortData($dataObjects['new'], $record->ID);
|
||||
}
|
||||
|
||||
$savedObj = $this->saveData($dataObjects, $this->editExisting);
|
||||
if($savedObj && $newFields) {
|
||||
if($savedObj && isset($newFields)) {
|
||||
$savedObj += $this->saveData($newFields,false);
|
||||
} else if($newFields) {
|
||||
} else if(isset($newFields)) {
|
||||
$savedObj = $this->saveData($newFields,false);
|
||||
}
|
||||
$items = $this->sourceItems();
|
||||
@ -778,4 +778,4 @@ class TableField_Item extends TableListField_Item {
|
||||
|
||||
}
|
||||
|
||||
?>
|
||||
?>
|
||||
|
Loading…
x
Reference in New Issue
Block a user