-function mots_post_edition($flux){
- if (($flux['args']['table'] == 'spip_groupes_mots')
- and isset($flux['data']['titre']))
- {
- sql_updateq('spip_mots', array('type' => $flux['data']['titre']),
- 'id_groupe=' . $flux['args']['id_objet']);
+function mots_post_edition($flux) {
+ if (isset($flux['args']['table'])
+ and ($flux['args']['table'] == 'spip_groupes_mots')
+ and isset($flux['data']['titre'])
+ ) {
+ sql_updateq('spip_mots', array('type' => $flux['data']['titre']), 'id_groupe=' . $flux['args']['id_objet']);