/** * get updated Family * If there is an updated family record in the gedcom file * return a new family object for it */ function &getUpdatedFamily() { global $GEDCOM, $pgv_changes; if ($this->getChanged()) { return $this; } if (PGV_USER_CAN_EDIT && $this->canDisplayDetails()) { if (isset($pgv_changes[$this->xref . "_" . $GEDCOM])) { $newrec = find_updated_record($this->xref); if (!empty($newrec)) { $newfamily = new Family($newrec); $newfamily->setChanged(true); return $newfamily; } } } return null; }