id_hub=$id_hub; $form["hub"]=$hub; unset($hub); $post=new FclFlux_post($form); if(!empty($post->erreurs)) $msg_form=array_merge($post->erreurs,$msg_form); if(empty($msg_form)) { $action=$post->change_hub(); 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)&&(!empty($post->id_post))) echo $post->id_post;//tout s'est bien passé, je recharge le post en ajax else { foreach($msg_form as $message) echo "