diff options
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 = ''; |
