diff --git a/index.php b/index.php index 291bfb7..7b009aa 100644 --- a/index.php +++ b/index.php @@ -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'; }