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