diff options
| author | Greg Roach <fisharebest@gmail.com> | 2013-10-04 18:19:23 +0100 |
|---|---|---|
| committer | Greg Roach <fisharebest@gmail.com> | 2013-10-04 18:19:23 +0100 |
| commit | 42b468046a7ca3ccb3314070b4e6cd0d6c0e0468 (patch) | |
| tree | 30392eb033b433ad625bca68a82546f40cddc7f5 /library | |
| parent | 421bac7ae35104fd016c5893f7040efb3a9e4b98 (diff) | |
| download | webtrees-42b468046a7ca3ccb3314070b4e6cd0d6c0e0468.tar.gz webtrees-42b468046a7ca3ccb3314070b4e6cd0d6c0e0468.tar.bz2 webtrees-42b468046a7ca3ccb3314070b4e6cd0d6c0e0468.zip | |
#1234683 - GedcomRecord.php syntax error in function removeLinks
Diffstat (limited to 'library')
| -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 f540cddd79..9959a62c61 100644 --- a/library/WT/GedcomRecord.php +++ b/library/WT/GedcomRecord.php @@ -1043,8 +1043,8 @@ class WT_GedcomRecord { foreach ($this->getFacts() as $fact) { if ($fact->getValue() == $value) { - $this->deleteFact($fact->factId()); - } elseif (preg_match('/\n(\d) ' . WT_REGEX_TAG . ' ' . $value . '/', $fact->getGedcom(), $matches, PREG_SET_ORDER)) { + $this->deleteFact($fact->getFactId(), $update_chan); + } elseif (preg_match_all('/\n(\d) ' . WT_REGEX_TAG . ' ' . $value . '/', $fact->getGedcom(), $matches, PREG_SET_ORDER)) { $gedcom = $fact->getGedcom(); foreach ($matches as $match) { $next_levels = '[' . $match[1]+1 . '-9]'; |
