summaryrefslogtreecommitdiff
path: root/includes/functions/functions_charts.php
diff options
context:
space:
mode:
Diffstat (limited to 'includes/functions/functions_charts.php')
-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>";
}