diff --git a/core/model/DataDifferencer.php b/core/model/DataDifferencer.php index 96c852cfd..2d87670e9 100644 --- a/core/model/DataDifferencer.php +++ b/core/model/DataDifferencer.php @@ -113,8 +113,8 @@ class DataDifferencer extends ViewableData { 'Diff' => $this->fromRecord ? Diff::compareHTML($this->fromRecord->$field, $this->toRecord->$field) : "" . $this->toRecord->$field . "", - 'From' => $this->fromRecord->$field, - 'To' => $this->toRecord->$field, + 'From' => $this->fromRecord ? $this->fromRecord->$field : null, + 'To' => $this->toRecord ? $this->toRecord->$field : null, ))); } }