id_flux=intval(trim($_POST["id_flux"])); if(empty($_POST["suppr_ok_tot"])) $action=$flux->supprime(); else $action=$flux->supprime(false); if(!empty($flux->erreurs)) $msg_form=array_merge($flux->erreurs,$msg_form); elseif($action===false) $msg_form[]=ERREUR_IMPREVUE; if(empty($msg_form)) $msg_form[]=MSG_ADMIN_VALID; $Bd=null; } } if((!empty($msg_form))&&($ajax_on)) { if($msg_form[0]==MSG_ADMIN_VALID) echo str_replace("'","\"",get_html_alerte_msg($msg_form,"alert-success"));//pour comparaison en JS else echo get_html_alerte_msg($msg_form); }