has_rights()) { // On a besoin de récupérer le tit1 sur forcage if ($forcage == 1) { $tab= unserialize(stripslashes($ret_url)); foreach($tab->GET as $key => $val){ if (get_magic_quotes_gpc()) $GLOBALS[$key] = $val; else { add_sl($val); $GLOBALS[$key] = $val; } } foreach($tab->POST as $key => $val){ if (get_magic_quotes_gpc()) $GLOBALS[$key] = $val; else { add_sl($val); $GLOBALS[$key] = $val; } } } $p_perso=new parametres_perso("notices"); $nberrors=$p_perso->check_submited_fields(); $tit1 = clean_string($f_tit1); if(trim($tit1)&&(!$nberrors)) { $myNotice = new notice($id); $myNotice->signature = $signature; $myNotice->target_link_on_error = "./acquisition.php?categ=sug&action=modif&id_bibli=0&id_sug=".$id_sug; $myNotice->set_properties_from_form(); $saved = $myNotice->save(); if($saved) { } else { // echec de la requete error_message('', $msg[281], 1, "./acquisition.php?categ=sug&action=modif&id_bibli=0&id_sug=".$id_sug); } } else { if (!trim($tit1)) { // erreur : le champ tit1 est vide if($id) { $notitle_message = $msg[280]; } else { $notitle_message = $msg[279]; } error_message('', $notitle_message, 1, "./acquisition.php?categ=sug&action=modif&id_bibli=0&id_sug=".$id_sug); } else { error_message_history($msg["notice_champs_perso"],$p_perso->error_message,1); } } }