diff options
| author | Greg Roach <fisharebest@gmail.com> | 2013-12-16 22:59:13 +0000 |
|---|---|---|
| committer | Greg Roach <fisharebest@gmail.com> | 2013-12-16 22:59:13 +0000 |
| commit | ff66886c6108459448a7b9ceb901a1aadf71a2bd (patch) | |
| tree | ac91d2f8aa40581ad394e3e572b0357f4a36c1d9 /library | |
| parent | a00f5d3acb8bfa6f25ce43f9084c0232eaedc374 (diff) | |
| download | webtrees-ff66886c6108459448a7b9ceb901a1aadf71a2bd.tar.gz webtrees-ff66886c6108459448a7b9ceb901a1aadf71a2bd.tar.bz2 webtrees-ff66886c6108459448a7b9ceb901a1aadf71a2bd.zip | |
#1259086 - branches sosa of spouse
Diffstat (limited to 'library')
| -rw-r--r-- | library/WT/Controller/Branches.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/library/WT/Controller/Branches.php b/library/WT/Controller/Branches.php index f0f151e485..5fc674fb43 100644 --- a/library/WT/Controller/Branches.php +++ b/library/WT/Controller/Branches.php @@ -188,10 +188,10 @@ class WT_Controller_Branches extends WT_Controller_Page { $spouse = $family->getSpouse($individual); if ($spouse) { - $sosa = array_search($spouse->getXref(), $this->ancestors); + $sosa = array_search($spouse, $this->ancestors); if ($sosa) { $sosa_class = 'search_hit'; - $sosa_html = ' <a class="details1 ' . $spouse->getBoxStyle() . '" title="' . WT_I18N::translate('Sosa') . '" href="relationship.php?pid2=' . WT_USER_ROOT_ID . '&pid1=' . $spouse->getXref() . '"> '.$sosa.' </a>' . self::sosaGeneration($sosa2); + $sosa_html = ' <a class="details1 ' . $spouse->getBoxStyle() . '" title="' . WT_I18N::translate('Sosa') . '" href="relationship.php?pid2=' . WT_USER_ROOT_ID . '&pid1=' . $spouse->getXref() . '"> '.$sosa.' </a>' . self::sosaGeneration($sosa); } else { $sosa_class = ''; $sosa_html = ''; |
