Skip to content

Commit

Permalink
Merge pull request #60 from albarin/allow-exporting-multiple-indi-events
Browse files Browse the repository at this point in the history
Allow to export multiple individual events of each type
  • Loading branch information
curtisdelicata authored Aug 22, 2024
2 parents eab64d9 + 31206ce commit 62d09e6
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions src/Writer/Indi.php
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,13 @@ public static function convert(\Gedcom\Record\Indi &$indi)
// $even
$even = $indi->getAllEven();
if (!empty($even) && $even !== []) {
foreach ($even as $item) {
$_convert = \Gedcom\Writer\Indi\Even::convert($item, $level);
$output .= $_convert;
foreach ($even as $items) {
foreach ($items as $item) {
if ($item) {
$_convert = \Gedcom\Writer\Indi\Even::convert($item, $level);
$output .= $_convert;
}
}
}
}

Expand Down

0 comments on commit 62d09e6

Please sign in to comment.