summaryrefslogtreecommitdiff
path: root/app/Functions/FunctionsExport.php
diff options
context:
space:
mode:
Diffstat (limited to 'app/Functions/FunctionsExport.php')
-rw-r--r--app/Functions/FunctionsExport.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/Functions/FunctionsExport.php b/app/Functions/FunctionsExport.php
index f16a85ca1c..c49ba96742 100644
--- a/app/Functions/FunctionsExport.php
+++ b/app/Functions/FunctionsExport.php
@@ -101,11 +101,11 @@ class FunctionsExport
// Preserve some values from the original header
$record = GedcomRecord::getInstance('HEAD', $tree);
- $fact = $record->firstFact('COPR');
+ $fact = $record->facts(['COPR'])->first();
if ($fact instanceof Fact) {
$COPR = "\n1 COPR " .$fact->value();
}
- $fact = $record->firstFact('LANG');
+ $fact = $record->facts(['LANG'])->first();
if ($fact instanceof Fact) {
$LANG = "\n1 LANG " .$fact->value();
}