dblog('Member card updated:', strtoupper($_POST["login_adh"]), $requete);
 } else {
     $requete = "UPDATE " . PREFIX_DB . "adherents\n                                            SET " . substr($update_string, 1) . "\n                                            WHERE id_adh=" . $adherent['id_adh'];
     $DB->Execute($requete);
     // to allow the string to be extracted for translation
     $foo = _T("Member card updated:");
     // logging
     //nom_adh and prenom_adh is not sent when form is used by a simple user
     //dblog('Member card updated:',strtoupper($_POST["nom_adh"]).' '.$_POST["prenom_adh"], $requete);
     dblog('Member card updated:', strtoupper($_POST["login_adh"]), $requete);
 }
 // picture upload
 if (isset($_FILES['photo'])) {
     if ($_FILES['photo']['tmp_name'] != '') {
         if (is_uploaded_file($_FILES['photo']['tmp_name'])) {
             if (!picture::store($adherent['id_adh'], $_FILES['photo']['tmp_name'], $_FILES['photo']['name'])) {
                 $error_detected[] = _T("- Only .jpg, .gif and .png files are allowed.");
             }
         }
     }
 }
 if (isset($_POST['del_photo'])) {
     if (!picture::delete($adherent['id_adh'])) {
         $error_detected[] = _T("Delete failed");
     }
 }
 if (isset($_POST["mail_confirm"])) {
     if ($_POST["mail_confirm"] == "1" && PREF_MAIL_METHOD > 0) {
         if (isset($adherent['email_adh']) && $adherent['email_adh'] != "") {
             $mail_subject = _T("Your Galette identifiers");
             $mail_text = _T("Hello,") . "\n";