diff options
| author | Greg Roach <fisharebest@gmail.com> | 2013-08-16 10:57:25 +0100 |
|---|---|---|
| committer | Greg Roach <fisharebest@gmail.com> | 2013-08-16 10:57:25 +0100 |
| commit | cd8f177cc56f044e9c8f4c9185fa444de6fc1586 (patch) | |
| tree | 8f7027a38d3ec4f78adb7a6c5b81a81891213c67 /library/WT/Controller | |
| parent | ffbf2556cf21bccfa96610130dbc6c667b25c3cf (diff) | |
| download | webtrees-cd8f177cc56f044e9c8f4c9185fa444de6fc1586.tar.gz webtrees-cd8f177cc56f044e9c8f4c9185fa444de6fc1586.tar.bz2 webtrees-cd8f177cc56f044e9c8f4c9185fa444de6fc1586.zip | |
Descendancy chart shows private marriage details
Diffstat (limited to 'library/WT/Controller')
| -rw-r--r-- | library/WT/Controller/Descendancy.php | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/library/WT/Controller/Descendancy.php b/library/WT/Controller/Descendancy.php index 53f8c9ed8e..9613427b02 100644 --- a/library/WT/Controller/Descendancy.php +++ b/library/WT/Controller/Descendancy.php @@ -199,10 +199,12 @@ class WT_Controller_Descendancy extends WT_Controller_Chart { echo '<img src="', $WT_IMAGES['spacer'], '" height="2" width="', ($Dindent+4), '" alt="">'; echo '<span class="details1" style="white-space:nowrap;">'; echo "<a href=\"#\" onclick=\"expand_layer('".$family->getXref().$personcount."'); return false;\" class=\"top\"><i id=\"".$family->getXref().$personcount."_img\" class=\"icon-minus\" title=\"".WT_I18N::translate('View Family')."\"></i></a>"; - foreach ($family->getFacts(WT_EVENTS_MARR) as $fact) { - echo ' <a href="', $family->getHtmlUrl(), '" class="details1">'; - $fact->print_simple_fact(); - echo '</a>'; + if ($family->canShow()) { + foreach ($family->getFacts(WT_EVENTS_MARR) as $fact) { + echo ' <a href="', $family->getHtmlUrl(), '" class="details1">'; + $fact->print_simple_fact(); + echo '</a>'; + } } echo '</span>'; |
