id_annonce=intval(trim($_POST["id_annonce"])); $action=$annonce->supprime(); if(!empty($annonce->erreurs)) $msg_form=array_merge($annonce->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); }