diff options
Diffstat (limited to 'includes/functions/functions.php')
| -rw-r--r-- | includes/functions/functions.php | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/includes/functions/functions.php b/includes/functions/functions.php index 8302743dd9..85a242c6f2 100644 --- a/includes/functions/functions.php +++ b/includes/functions/functions.php @@ -160,12 +160,12 @@ function load_gedcom_settings($ged_id) { foreach ($rows as $row) { if ($row->xref !== null) { if ($row->tag_type !== null) { - $person_facts[$row->xref][$row->tag_type] = (int)$row->resn; + $person_facts[$row->xref][$row->tag_type] = (int) $row->resn; } else { - $person_privacy[$row->xref] = (int)$row->resn; + $person_privacy[$row->xref] = (int) $row->resn; } } else { - $global_facts[$row->tag_type] = (int)$row->resn; + $global_facts[$row->tag_type] = (int) $row->resn; } } } @@ -2222,8 +2222,8 @@ function get_relationship_name_from_path($path, WT_Individual $person1 = null, W $descent = $match[2]; $up = strlen($ascent) / 3; $down = strlen($descent) / 3; - $cousin = min($up, $down); // Moved out of switch (en/default case) so that - $removed = abs($down - $up); // Spanish (and other languages) can use it, too. + $cousin = min($up, $down); // Moved out of switch (en/default case) so that + $removed = abs($down - $up); // Spanish (and other languages) can use it, too. // Different languages have different rules for naming cousins. For example, // an English “second cousin once removed” is a Polish “cousin of 7th degree”. |
