diff options
| author | Greg Roach <greg@subaqua.co.uk> | 2021-10-29 16:22:59 +0100 |
|---|---|---|
| committer | Greg Roach <greg@subaqua.co.uk> | 2021-10-29 16:22:59 +0100 |
| commit | 41acc92b0fa7f1cfb293f47f77a9b2aaf668b765 (patch) | |
| tree | c2c2688fd29421d10bd46f4bc89fb459200d83e3 /resources/views/family-page-grandparents.phtml | |
| parent | dd71ff6b9f8508a26dabb8d3203ec5b96f870208 (diff) | |
| download | webtrees-41acc92b0fa7f1cfb293f47f77a9b2aaf668b765.tar.gz webtrees-41acc92b0fa7f1cfb293f47f77a9b2aaf668b765.tar.bz2 webtrees-41acc92b0fa7f1cfb293f47f77a9b2aaf668b765.zip | |
Fix: unnecessary/incorrect checks
Diffstat (limited to 'resources/views/family-page-grandparents.phtml')
| -rw-r--r-- | resources/views/family-page-grandparents.phtml | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/resources/views/family-page-grandparents.phtml b/resources/views/family-page-grandparents.phtml index da736c70a5..f49dd27578 100644 --- a/resources/views/family-page-grandparents.phtml +++ b/resources/views/family-page-grandparents.phtml @@ -44,7 +44,7 @@ use Fisharebest\Webtrees\Individual; <?php endif ?> </div> <?php else : ?> - <?= view('chart-box', ['individual' => $parent_family ? $parent_family->husband() : null]) ?> + <?= view('chart-box', ['individual' => $parent_family->husband()]) ?> <?php endif ?> </div> </div> @@ -74,7 +74,7 @@ use Fisharebest\Webtrees\Individual; <?php endif ?> </div> <?php else : ?> - <?= view('chart-box', ['individual' => $parent_family ? $parent_family->wife() : null]) ?> + <?= view('chart-box', ['individual' => $parent_family->wife()]) ?> <?php endif ?> </div> </div> |
