summaryrefslogtreecommitdiff
path: root/app/Functions/FunctionsPrintFacts.php
diff options
context:
space:
mode:
Diffstat (limited to 'app/Functions/FunctionsPrintFacts.php')
-rw-r--r--app/Functions/FunctionsPrintFacts.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/Functions/FunctionsPrintFacts.php b/app/Functions/FunctionsPrintFacts.php
index 540f522618..2d7ce2e7f1 100644
--- a/app/Functions/FunctionsPrintFacts.php
+++ b/app/Functions/FunctionsPrintFacts.php
@@ -606,7 +606,7 @@ class FunctionsPrintFacts
}
$data .= ' class="source_citations">';
// PUBL
- $publ = $source->firstFact('PUBL');
+ $publ = $source->facts(['PUBL'])->first();
if ($publ) {
$data .= GedcomTag::getLabelValue('PUBL', $publ->value());
}
@@ -790,7 +790,7 @@ class FunctionsPrintFacts
if ($source) {
echo '<a href="', e($source->url()), '">', $source->fullName(), '</a>';
// PUBL
- $publ = $source->firstFact('PUBL');
+ $publ = $source->facts(['PUBL'])->first();
if ($publ) {
echo GedcomTag::getLabelValue('PUBL', $publ->value());
}