@@ -140,7 +140,8 @@ discard block |
||
140 | 140 | <div class="font9"> |
141 | 141 | <?= $spouse->getLifeSpan() ?> |
142 | 142 | </div> |
143 | - <?php else: ?> |
|
143 | + <?php else { |
|
144 | + : ?> |
|
144 | 145 | <?= $spouse->getFullName() ?> |
145 | 146 | <?php endif ?> |
146 | 147 | </td> |
@@ -150,6 +151,7 @@ discard block |
||
150 | 151 | |
151 | 152 | foreach ($family->getChildren() as $child) { |
152 | 153 | $menu = new Menu(Functions::getCloseRelationshipName($controller->record, $child)); |
154 | +} |
|
153 | 155 | $menu->addSubmenu(new Menu($this->getFamily($child))); |
154 | 156 | ?> |
155 | 157 | <tr> |
@@ -166,7 +168,8 @@ discard block |
||
166 | 168 | <div class="font9"> |
167 | 169 | <?= $child->getLifeSpan() ?> |
168 | 170 | </div> |
169 | - <?php else: ?> |
|
171 | + <?php else { |
|
172 | + : ?> |
|
170 | 173 | <?= $child->getFullName() ?> |
171 | 174 | <?php endif ?> |
172 | 175 | </td> |
@@ -186,6 +189,7 @@ discard block |
||
186 | 189 | private function getHTML($person, $showUnknown = false) { |
187 | 190 | if ($person instanceof Individual) { |
188 | 191 | return sprintf(self::LNK, $person->getHtmlUrl(), $person->getFullName()); |
192 | +} |
|
189 | 193 | } elseif ($showUnknown) { |
190 | 194 | return sprintf(self::MSG, I18N::translate('unknown')); |
191 | 195 | } else { |