summaryrefslogtreecommitdiff
path: root/library/WT/Controller/GedcomRecord.php
diff options
context:
space:
mode:
Diffstat (limited to 'library/WT/Controller/GedcomRecord.php')
-rw-r--r--library/WT/Controller/GedcomRecord.php4
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;