diff options
| author | fisharebest <fisharebest@gmail.com> | 2013-07-04 20:11:21 +0000 |
|---|---|---|
| committer | fisharebest <fisharebest@gmail.com> | 2013-07-04 20:11:21 +0000 |
| commit | ed5d1ddf27deafbacb6c076b169820e70a8ff00c (patch) | |
| tree | 554ca9c9285c5226418fa156658ea3f3cda519b7 /library/WT/Controller/GedcomRecord.php | |
| parent | a7f67e6898261b991999edbc955e52ac5ee05bc1 (diff) | |
| download | webtrees-ed5d1ddf27deafbacb6c076b169820e70a8ff00c.tar.gz webtrees-ed5d1ddf27deafbacb6c076b169820e70a8ff00c.tar.bz2 webtrees-ed5d1ddf27deafbacb6c076b169820e70a8ff00c.zip | |
Show missing spouse as an unknown person on charts. Provides more consistent layout and simpler code.
Diffstat (limited to 'library/WT/Controller/GedcomRecord.php')
| -rw-r--r-- | library/WT/Controller/GedcomRecord.php | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/library/WT/Controller/GedcomRecord.php b/library/WT/Controller/GedcomRecord.php index 233c7fbaac..205ba4d4d4 100644 --- a/library/WT/Controller/GedcomRecord.php +++ b/library/WT/Controller/GedcomRecord.php @@ -29,6 +29,10 @@ class WT_Controller_GedcomRecord extends WT_Controller_Page { public $record; // individual, source, repository, etc. public function __construct() { + // Non-existant record? + if ($this->record->getXref() == WT_GedcomRecord::DUMMY_XREF) { + $this->record = null; + } // Automatically fix broken links if ($this->record && $this->record->canEdit()) { $broken_links=0; |
