diff options
| author | fisharebest <fisharebest@gmail.com> | 2013-07-05 23:35:06 +0000 |
|---|---|---|
| committer | fisharebest <fisharebest@gmail.com> | 2013-07-05 23:35:06 +0000 |
| commit | 3deee921b1f68db444990765ffe161239d097ef4 (patch) | |
| tree | 4e307ab4f0eaea76a5c3bbfb1a79ced5f5b88c5d /modules_v3 | |
| parent | da4602e137d2acdd55a03e33da788e7c3846af2c (diff) | |
| download | webtrees-3deee921b1f68db444990765ffe161239d097ef4.tar.gz webtrees-3deee921b1f68db444990765ffe161239d097ef4.tar.bz2 webtrees-3deee921b1f68db444990765ffe161239d097ef4.zip | |
PHP error displaying associates on the facts+events tab
Diffstat (limited to 'modules_v3')
| -rw-r--r-- | modules_v3/personal_facts/module.php | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/modules_v3/personal_facts/module.php b/modules_v3/personal_facts/module.php index 27de6d1cda..23945727c6 100644 --- a/modules_v3/personal_facts/module.php +++ b/modules_v3/personal_facts/module.php @@ -458,18 +458,18 @@ class personal_facts_WT_Module extends WT_Module implements WT_Module_Tab { if ($arec) { // Extract the important details from the fact $factrec='1 '.$fact->getTag(); - if (preg_match('/\n2 DATE .*/', $srec, $match)) { + if (preg_match('/\n2 DATE .*/', $fact->getGedcom(), $match)) { $factrec.=$match[0]; } - if (preg_match('/\n2 PLAC .*/', $srec, $match)) { + if (preg_match('/\n2 PLAC .*/', $fact->getGedcom(), $match)) { $factrec.=$match[0]; } if ($associate instanceof WT_Family) { foreach ($associate->getSpouses() as $spouse) { - $factrec.="\n2 $asso_tag @".$spouse->getXref().'@'; + $factrec.="\n2 _ASSO @".$spouse->getXref().'@'; } } else { - $factrec.="\n2 $asso_tag @".$associate->getXref().'@'; + $factrec.="\n2 _ASSO @".$associate->getXref().'@'; // CHR/BAPM events are commonly used. Generate the reverse relationship if (preg_match('/^(?:BAPM|CHR)$/', $fact->getTag()) && preg_match('/3 RELA god(?:parent|mother|father)/', $fact->getGedcom())) { switch ($associate->getSex()) { |
