diff options
| author | Łukasz Wilenski <wooc@gazeta.pl> | 2010-09-06 17:48:25 +0000 |
|---|---|---|
| committer | Łukasz Wilenski <wooc@gazeta.pl> | 2010-09-06 17:48:25 +0000 |
| commit | 09176f426a5475ba18381f97be7da170f7baf3f3 (patch) | |
| tree | 987f15ab3b7ab7bff9d620680a7250d29d7e1970 | |
| parent | 14f4a6d6cc5b6d2e93bbcdee2a3722bae2b97e5c (diff) | |
| download | webtrees-09176f426a5475ba18381f97be7da170f7baf3f3.tar.gz webtrees-09176f426a5475ba18381f97be7da170f7baf3f3.tar.bz2 webtrees-09176f426a5475ba18381f97be7da170f7baf3f3.zip | |
#631652 Error in Branches List on record containing "PEDI adopted"
| -rw-r--r-- | branches.php | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/branches.php b/branches.php index 0cf3e12eb1..6839c8fa22 100644 --- a/branches.php +++ b/branches.php @@ -147,6 +147,8 @@ function print_fams($person, $famid=null) { $person->getBirthDeathYears()." {$sosa}"; if ($famid && $person->getChildFamilyPedigree($famid)) { $sex = $person->getSex(); + $famcrec = get_sub_record(1, "1 FAMC @".$famid."@", $person->getGedcomRecord()); + $pedi = get_gedcom_value("PEDI", 2, $famcrec, '', false); if ($sex=="F" && isset($PEDI_CODES_F[$pedi])) $label = $PEDI_CODES_F[$pedi]; else if ($sex=="M" && isset($PEDI_CODES_M[$pedi])) $label = $PEDI_CODES_M[$pedi]; else if (isset($PEDI_CODES[$pedi])) $label = $PEDI_CODES[$pedi]; |
