diff --git a/htdocs/adherents/card.php b/htdocs/adherents/card.php index 2b9d86c3bbd..515c0bd46af 100644 --- a/htdocs/adherents/card.php +++ b/htdocs/adherents/card.php @@ -307,8 +307,8 @@ if (empty($reshook)) { $object->address = trim(GETPOST("address", 'alphanohtml')); $object->zip = trim(GETPOST("zipcode", 'alphanohtml')); $object->town = trim(GETPOST("town", 'alphanohtml')); - $object->state_id = GETPOST("state_id", 'int'); - $object->country_id = GETPOST("country_id", 'int'); + $object->state_id = GETPOSTINT("state_id"); + $object->country_id = GETPOSTINT("country_id"); $object->phone = trim(GETPOST("phone", 'alpha')); $object->phone_perso = trim(GETPOST("phone_perso", 'alpha')); @@ -334,9 +334,9 @@ if (empty($reshook)) { } // Get status and public property - $object->statut = GETPOST("statut", 'alpha'); - $object->status = GETPOST("statut", 'alpha'); - $object->public = GETPOST("public", 'alpha'); + $object->statut = GETPOSTINT("statut"); + $object->status = GETPOSTINT("statut"); + $object->public = GETPOSTINT("public"); // Fill array 'array_options' with data from add form $ret = $extrafields->setOptionalsFromPost(null, $object, '@GETPOSTISSET');