$error_signe['menu'] = "*"; } if ($nom=='') { $error_type = 2; $error_signe['nom'] = '*'; } if ($error_type > 0) { //erreur de type champ non valide $msginfo = 'Champ non valide'; $a = 4; break; } $tcat = new CTableMotcle(array('nom_motcle'=>CFunction::addslashes($nom),'cat_motcle'=>$idcat)); $tcat->insert(); $msginfo = 'Menu bien ajoutée'; $a = 0; break; case 5 : // Modifier 1 if(!empty($_GET['id'])) $id = $_GET['id']; $tcat = new CTableMotcle(array('id_motcle'=>$id)); $cat = $tcat->select_row(); $nom = $cat['nom_motcle']; $idcat = $cat['cat_motcle']; // print_r($nom); if(!CLogin::protect_action($idreda)) { $a = 0; $msginfo = 'Action non autorisée';