summaryrefslogtreecommitdiff
path: root/app/Fact.php
diff options
context:
space:
mode:
authorGreg Roach <fisharebest@webtrees.net>2019-01-27 22:58:40 +0000
committerGreg Roach <fisharebest@webtrees.net>2019-01-27 23:17:30 +0000
commit392561bb99af217275768e5e324d4700af01ce3e (patch)
treec5b27fb099155c3be24d6c50edefd26a0f60dadf /app/Fact.php
parentead61980531901585812230435477067158ac121 (diff)
downloadwebtrees-392561bb99af217275768e5e324d4700af01ce3e.tar.gz
webtrees-392561bb99af217275768e5e324d4700af01ce3e.tar.bz2
webtrees-392561bb99af217275768e5e324d4700af01ce3e.zip
Refactor class Place
Diffstat (limited to 'app/Fact.php')
-rw-r--r--app/Fact.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/Fact.php b/app/Fact.php
index 537c8b7e22..7bb5eba9e5 100644
--- a/app/Fact.php
+++ b/app/Fact.php
@@ -526,8 +526,8 @@ class Fact
}
}
// Fact place
- if (!$this->place()->isEmpty()) {
- $attributes[] = $this->place()->getShortName();
+ if ($this->place()->gedcomName() <> '') {
+ $attributes[] = $this->place()->shortName();
}
}