diff options
| author | fisharebest <fisharebest@gmail.com> | 2013-10-07 09:24:26 +0100 |
|---|---|---|
| committer | fisharebest <fisharebest@gmail.com> | 2013-10-07 09:24:26 +0100 |
| commit | ed2cf1bf07bb76abd816b98cc2f85a0181ce910b (patch) | |
| tree | 61e08b81fea286f5fdd4cc47340c935ef9d9792a /library | |
| parent | 7adacca0e724e75fd8401137c857c169d0574071 (diff) | |
| download | webtrees-ed2cf1bf07bb76abd816b98cc2f85a0181ce910b.tar.gz webtrees-ed2cf1bf07bb76abd816b98cc2f85a0181ce910b.tar.bz2 webtrees-ed2cf1bf07bb76abd816b98cc2f85a0181ce910b.zip | |
#1236088 - GedcomRecord.php function removeLinks errors
Diffstat (limited to 'library')
| -rwxr-xr-x[-rw-r--r--] | library/WT/GedcomRecord.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/library/WT/GedcomRecord.php b/library/WT/GedcomRecord.php index 9959a62c61..edf4922550 100644..100755 --- a/library/WT/GedcomRecord.php +++ b/library/WT/GedcomRecord.php @@ -1048,9 +1048,9 @@ class WT_GedcomRecord { $gedcom = $fact->getGedcom(); foreach ($matches as $match) { $next_levels = '[' . $match[1]+1 . '-9]'; - $gedcom = preg_replace('/' . $match[1] . '(\n' . $next_levels .'.*)*/', '', $gedcom); + $gedcom = preg_replace('/' . $match[0] . '(\n' . $next_levels .'.*)*/', '', $gedcom); } - $this->updateFact($fact->factId(), $gedcom, $update_chan); + $this->updateFact($fact->getFactId(), $gedcom, $update_chan); } } } |
