From e57b4a8bdab7d03069af7ef946244e8fa2991203 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Sat, 31 Aug 2019 13:22:02 +0200 Subject: [PATCH] Fix cast --- htdocs/adherents/type.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/htdocs/adherents/type.php b/htdocs/adherents/type.php index 96b043fcf7b..410d5ca254f 100644 --- a/htdocs/adherents/type.php +++ b/htdocs/adherents/type.php @@ -106,11 +106,11 @@ if ($cancel) { if ($action == 'add' && $user->rights->adherent->configurer) { $object->label = trim($label); $object->morphy = trim($morphy); - $object->statut = (int) $statut; - $object->subscription = (int) $subscription; + $object->statut = (int) $statut; + $object->subscription = (int) $subscription; $object->note = trim($comment); $object->mail_valid = trim($mail_valid); - $object->vote = (boolean) trim($vote); + $object->vote = (int) $vote; // Fill array 'array_options' with data from add form $ret = $extrafields->setOptionalsFromPost($extralabels, $object);