summaryrefslogtreecommitdiff
path: root/library
diff options
context:
space:
mode:
authorGreg Roach <fisharebest@gmail.com>2014-01-26 20:23:02 +0000
committerGreg Roach <fisharebest@gmail.com>2014-01-26 20:23:02 +0000
commit59dbde3ddf594d348fba799d5e745e72387ca3fd (patch)
tree9454a20f46f3e7c1d9f198cf74e19fc231c29d73 /library
parentfc812da71cccd1d0a1be58c7b085fccb2a4a3e09 (diff)
downloadwebtrees-59dbde3ddf594d348fba799d5e745e72387ca3fd.tar.gz
webtrees-59dbde3ddf594d348fba799d5e745e72387ca3fd.tar.bz2
webtrees-59dbde3ddf594d348fba799d5e745e72387ca3fd.zip
'other' record types have no name
Diffstat (limited to 'library')
-rwxr-xr-xlibrary/WT/GedcomRecord.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/library/WT/GedcomRecord.php b/library/WT/GedcomRecord.php
index 2e605fc10b..91fe0dae50 100755
--- a/library/WT/GedcomRecord.php
+++ b/library/WT/GedcomRecord.php
@@ -445,6 +445,11 @@ class WT_GedcomRecord {
}
}
+ // Default for "other" object types
+ public function extractNames() {
+ $this->_addName(static::RECORD_TYPE, $this->getFallBackName(), null);
+ }
+
// Derived classes should redefine this function, otherwise the object will have no name
public function getAllNames() {
if ($this->_getAllNames === null) {