fix can
This commit is contained in:
parent
6a483e314c
commit
c7c5ae17fa
@ -275,9 +275,9 @@ $form_data = filter_input_array(INPUT_POST, [
|
||||
if (empty($_POST['id_type'])) { $id_type_error=1; } else {$id_type_error=0;};
|
||||
if (empty($_POST['badge'])) { $badge_error=1; } else {$badge_error=0;};
|
||||
if (empty($_POST['initials'])) { $initials_error=1; } else {$initials_error=0;};
|
||||
if($SiteInfo->getSite($siteid, $uid, "0", "0")[0]["sites_region"] == "US" || $SiteInfo->getSite($siteid, $uid, "0", "0")[0]["sites_region"] == "CAN") {
|
||||
if($SiteInfo->getSite($siteid, $uid, "0", "0")[0]["sites_region"] == "US") {
|
||||
if (empty($_POST['citizen'])) { $citizen_error=(int)'1'; } elseif ($_POST['citizen']==='00') { $citizen_error=(int)'1'; } else { $citizen_error=(int)'0'; };
|
||||
}elseif($SiteInfo->getSite($siteid, $uid, "0", "0")[0]["sites_region"] == "EMEA"){
|
||||
}elseif($SiteInfo->getSite($siteid, $uid, "0", "0")[0]["sites_region"] == "EMEA" || $SiteInfo->getSite($siteid, $uid, "0", "0")[0]["sites_region"] == "CAN"){
|
||||
$_POST['citizen']=NULL;
|
||||
$citizen_error=(int)'0';
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user