Code Duplication    Length = 5-5 lines in 2 locations

edit_interface.php 2 locations

@@ 833-837 (lines=5) @@
830
	$text      = Filter::postArray('text');
831
	$islink    = Filter::postArray('islink', '[01]');
832
833
	if (!Filter::checkCsrf()) {
834
		$gender = Filter::get('gender', '[MFU]', 'U');
835
		header('Location: edit_interface.php?action=add_child_to_family&xref=' . $xref . '&gender=' . $gender);
836
		break;
837
	}
838
839
	$family = Family::getInstance($xref, $controller->tree());
840
	check_record_access($family);
@@ 993-997 (lines=5) @@
990
	$text    = Filter::postArray('text');
991
	$islink  = Filter::postArray('islink', '[01]');
992
993
	if (!Filter::checkCsrf()) {
994
		$gender = Filter::get('gender', '[MFU]', 'U');
995
		header('Location: edit_interface.php?action=add_parent_to_individual&xref=' . $xref . '&gender=' . $gender);
996
		break;
997
	}
998
999
	$person = Individual::getInstance($xref, $controller->tree());
1000
	check_record_access($person);