Skip to content

Commit bc3b61b

Browse files
Fix.
1 parent a878541 commit bc3b61b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Utils/FamilyData.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,8 @@ public static function getFamily($conn, $families, $obje_ids, $sour_ids, $person
5050

5151
$chan = $family->getChan();
5252

53-
$husband_id = (isset($persons_id[$husb])) ? $persons_id[$husb] : 0;
54-
$wife_id = (isset($persons_id[$wife])) ? $persons_id[$wife] : 0;
53+
$husband_id = (isset($husb) ? $husb : 0);
54+
$wife_id = (isset($wife) ? $wife : 0);
5555

5656
// $family = Family::on($conn)->updateOrCreate(
5757
// compact('husband_id', 'wife_id', 'description', 'type_id', 'nchi', 'rin')

0 commit comments

Comments
 (0)