diff options
| author | fisharebest <fisharebest@gmail.com> | 2013-07-18 22:14:42 +0000 |
|---|---|---|
| committer | fisharebest <fisharebest@gmail.com> | 2013-07-18 22:14:42 +0000 |
| commit | cde56608850b625cd2ce984f49d775813dd67f88 (patch) | |
| tree | 8649e733793de9066517202ba9b6b2c6eefc9833 | |
| parent | cb2255f4cc4be93eae6c53766d08345bed75e27f (diff) | |
| download | webtrees-cde56608850b625cd2ce984f49d775813dd67f88.tar.gz webtrees-cde56608850b625cd2ce984f49d775813dd67f88.tar.bz2 webtrees-cde56608850b625cd2ce984f49d775813dd67f88.zip | |
#1202777 - Statistics -> Others: Birth Death and Marriage Places are Empty
| -rw-r--r-- | library/WT/Stats.php | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/library/WT/Stats.php b/library/WT/Stats.php index 1dfc193742..f6905214a9 100644 --- a/library/WT/Stats.php +++ b/library/WT/Stats.php @@ -860,18 +860,16 @@ class WT_Stats { } $placelist = array(); foreach ($rows as $row) { - if (preg_match('/\n1 {$fact}(?:\n[2-9].*)*\n2 PLAC (.+)}/', $row->ged, $match)) { + if (preg_match('/\n1 ' . $fact . '(?:\n[2-9].*)*\n2 PLAC (.+)/', $row->ged, $match)) { if ($country) { $tmp=explode(WT_Place::GEDCOM_SEPARATOR, $match[1]); $place = end($tmp); - } - else { + } else { $place = $match[1]; } if (!isset($placelist[$place])) { $placelist[$place] = 1; - } - else { + } else { $placelist[$place] ++; } } |
