diff options
Diffstat (limited to 'app/Services/SearchService.php')
| -rw-r--r-- | app/Services/SearchService.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/Services/SearchService.php b/app/Services/SearchService.php index d7f73ad025..f9ed013b64 100644 --- a/app/Services/SearchService.php +++ b/app/Services/SearchService.php @@ -715,7 +715,7 @@ class SearchService if ($parts[1] === 'PLAC') { // *:PLAC foreach ($individual->facts([$parts[0]]) as $fact) { - if (preg_match($regex, $fact->place()->getGedcomName())) { + if (preg_match($regex, $fact->place()->gedcomName())) { return true; } } @@ -723,7 +723,7 @@ class SearchService // FAMS:*:PLAC foreach ($individual->getSpouseFamilies() as $family) { foreach ($family->facts([$parts[1]]) as $fact) { - if (preg_match($regex, $fact->place()->getGedcomName())) { + if (preg_match($regex, $fact->place()->gedcomName())) { return true; } } |
