summaryrefslogtreecommitdiff
path: root/app/GedcomRecord.php
diff options
context:
space:
mode:
Diffstat (limited to 'app/GedcomRecord.php')
-rw-r--r--app/GedcomRecord.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/GedcomRecord.php b/app/GedcomRecord.php
index afe5798a90..56f42a008b 100644
--- a/app/GedcomRecord.php
+++ b/app/GedcomRecord.php
@@ -820,12 +820,12 @@ class GedcomRecord
{
foreach ($this->facts($facts, true) as $event) {
// Only display if it has a date or place (or both)
- if ($event->date()->isOK() && !$event->place()->isEmpty()) {
+ if ($event->date()->isOK() && $event->place()->gedcomName() <> '') {
$joiner = ' — ';
} else {
$joiner = '';
}
- if ($event->date()->isOK() || !$event->place()->isEmpty()) {
+ if ($event->date()->isOK() || $event->place()->gedcomName() <> '') {
switch ($style) {
case 1:
return '<br><em>' . $event->label() . ' ' . FunctionsPrint::formatFactDate($event, $this, false, false) . $joiner . FunctionsPrint::formatFactPlace($event) . '</em>';