X-Git-Url: http://git.cyclocoop.org/?p=ptitvelo%2Fweb%2Fwww.git;a=blobdiff_plain;f=www%2Fecrire%2Faction%2Fediter_objet.php;h=6d1bfcc7714ef5ca555a4cdd5a4cb2ab219179c4;hp=7fcf0f49ae2c61dc021519d79939289d3716bf9c;hb=dae7b78d26d32fb23e8c524f795bbaf40e685c6a;hpb=33b1462fcc1e5fa853f6ca84daa7cff72cdbe706 diff --git a/www/ecrire/action/editer_objet.php b/www/ecrire/action/editer_objet.php index 7fcf0f4..6d1bfcc 100644 --- a/www/ecrire/action/editer_objet.php +++ b/www/ecrire/action/editer_objet.php @@ -180,7 +180,8 @@ function objet_inserer($objet, $id_parent=null, $set=null) { if (isset($desc['field']['statut'])){ if (isset($desc['statut_textes_instituer'])){ - $champs['statut'] = reset(array_keys($desc['statut_textes_instituer'])); + $cles_statut = array_keys($desc['statut_textes_instituer']); + $champs['statut'] = reset($cles_statut); } else $champs['statut'] = 'prepa';