Skip to content

Commit

Permalink
Update ParentData.php
Browse files Browse the repository at this point in the history
  • Loading branch information
curtisdelicata authored Oct 26, 2021
1 parent 86dba90 commit 5b32692
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions src/Utils/ParentData.php
Original file line number Diff line number Diff line change
Expand Up @@ -64,14 +64,14 @@ public static function getPerson($conn, $individuals, $obje_ids = [], $sour_ids
$g_id = $individual->getId();

if (!empty($names)) {
$name = current($names)->getName();
$npfx = current($names)->getNpfx();
$givn = current($names)->getGivn();
$nick = current($names)->getNick();
$spfx = current($names)->getSpfx();
$surn = current($names)->getSurn();
$nsfx = current($names)->getNsfx();
$type = current($names)->getType();
$name = current($names)->getName() ?: '';
$npfx = current($names)->getNpfx() ?: '';
$givn = current($names)->getGivn() ?: '';
$nick = current($names)->getNick() ?: '';
$spfx = current($names)->getSpfx() ?: '';
$surn = current($names)->getSurn() ?: '';
$nsfx = current($names)->getNsfx() ?: '';
$type = current($names)->getType() ?: '';
}

// array value
Expand Down

0 comments on commit 5b32692

Please sign in to comment.