From c7c5ae17fa7efbd51a397bd3d999d793fd3d1f7a Mon Sep 17 00:00:00 2001 From: Josh North Date: Tue, 22 Jun 2021 17:51:44 -0400 Subject: [PATCH] fix can --- index.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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'; }