diff --git a/inc/formidable.php b/inc/formidable.php index 5205658c7b6e0baf3045484724c2bd373aa70344..a3c2f46dedf453024942ec5ae6a3026393a6fb33 100644 --- a/inc/formidable.php +++ b/inc/formidable.php @@ -169,7 +169,12 @@ function formidable_verifier_reponse_formulaire($id_formulaire, $choix_identific $where_cookie = ''; $where_variable_php = ''; if ($id_auteur) { - $where_id_auteur = 'id_auteur='.$id_auteur; + if ($anonymiser == 'on') { + $id_auteur = formidable_crypter_id_auteur($id_auteur); + $where_id_auteur = 'variable_php="'.$id_auteur.'"'; + } else { + $where_id_auteur = 'id_auteur='.$id_auteur; + } } if ($cookie) { $where_cookie = 'cookie='.sql_quote($cookie); @@ -187,13 +192,9 @@ function formidable_verifier_reponse_formulaire($id_formulaire, $choix_identific } } elseif ($choix_identification == 'id_auteur') { if ($id_auteur) { - if ($anonymiser == 'on') { - $id_auteur = formidable_crypter_id_auteur($id_auteur); - $where_id_auteur = 'variable_php="'.$id_auteur.'"'; - } $where = array($where_id_auteur); } else { - $where = array($where_cookie, $where_variable_php); + $where = array($where_cookie); } } elseif ($choix_identification == 'variable_php') { if ($variable_php_identification) {