par defaut, si appel de la fonction -> editable = non

This commit is contained in:
Christophe 2021-04-26 09:47:03 +02:00
parent ec5dcd9fe8
commit bc4922f87d

View file

@ -39,8 +39,8 @@ function action_creer_slug_dist($slug = null, $opt = []){
$set['slug'] = $slug; $set['slug'] = $slug;
} }
if (is_array($opt) and count($opt)) { if (is_array($opt) and count($opt)) {
$set['editable'] = 'non';
$set = array_merge($set, $opt); $set = array_merge($set, $opt);
//$set['editable'] = '';
} }
sql_updateq('spip_gamumails', $set, 'id_gamumail = '.$id_slug); sql_updateq('spip_gamumails', $set, 'id_gamumail = '.$id_slug);
} }