summaryrefslogtreecommitdiff
path: root/includes
diff options
context:
space:
mode:
authormakitso <makitso@gmail.com>2014-02-10 11:35:56 -0600
committermakitso <makitso@gmail.com>2014-02-10 11:35:56 -0600
commita6343d9f5056555ff9ed13d11ff23d1168d9ad42 (patch)
tree04d07ce97d8d0fe7e4287212756035759cedf2ad /includes
parent06c620ff181456f4a4c94849eda80f65ee23388e (diff)
downloadwebtrees-a6343d9f5056555ff9ed13d11ff23d1168d9ad42.tar.gz
webtrees-a6343d9f5056555ff9ed13d11ff23d1168d9ad42.tar.bz2
webtrees-a6343d9f5056555ff9ed13d11ff23d1168d9ad42.zip
Bug 1278182 Familypage - lines connecting mother to one-parent grand-parents
Diffstat (limited to 'includes')
-rw-r--r--includes/functions/functions_charts.php12
1 files changed, 11 insertions, 1 deletions
diff --git a/includes/functions/functions_charts.php b/includes/functions/functions_charts.php
index 429187afa0..19558a1e86 100644
--- a/includes/functions/functions_charts.php
+++ b/includes/functions/functions_charts.php
@@ -211,6 +211,11 @@ function print_family_parents(WT_Family $family, $sosa=0, $label='', $parid='',
echo "<td valign=\"top\">";
print_pedigree_person(WT_Individual::getInstance($hfam->getHusband()->getXref()), 1, 6, $personcount);
echo "</td></tr></table>";
+ } elseif ($hfam && !$hfam->getHusband()) { // here for empty box for grandfather
+ echo "<table style=\"width: " . ($pbwidth) . "px; height: " . $pbheight . "px;\" border=\"0\"><tr>";
+ echo '<td valign="top">';
+ print_pedigree_person($hfam->getHusband());
+ echo '</td></tr></table>';
}
echo "</td>";
}
@@ -229,8 +234,13 @@ function print_family_parents(WT_Family $family, $sosa=0, $label='', $parid='',
echo "<td valign=\"top\">";
print_pedigree_person(WT_Individual::getInstance($hfam->getWife()->getXref()), 1, 7, $personcount);
echo "</td></tr></table>";
+ } elseif ($hfam && !$hfam->getWife()) { // here for empty box for grandmother
+ echo "<table style=\"width: " . ($pbwidth) . "px; height: " . $pbheight . "px;\" border=\"0\"><tr>";
+ echo '<td valign="top">';
+ print_pedigree_person($hfam->getWife());
+ echo '</td></tr></table>';
}
- echo "</td>";
+ echo '</td>';
}
echo "</tr></table>";
}