id_hub=intval(trim($_POST["hub_id"])); $form["hub"]=$hub; $post=new FclFlux_post($form); $action=$post->supprime(); if(!empty($post->erreurs)) $msg_form=array_merge($post->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); }