X-Git-Url: http://git.cyclocoop.org/?p=lhc%2Fweb%2Fwww.git;a=blobdiff_plain;f=www%2Fecrire%2Faction%2Fediter_objet.php;h=17a7ece2fa8d093843cc93ac78323cf9c9824f44;hp=7fcf0f49ae2c61dc021519d79939289d3716bf9c;hb=122c920eb07e3f665789f8734965b576e6c25515;hpb=226942065cd4f604eb464addf45a065c9e5bc916 diff --git a/www/ecrire/action/editer_objet.php b/www/ecrire/action/editer_objet.php index 7fcf0f49..17a7ece2 100644 --- a/www/ecrire/action/editer_objet.php +++ b/www/ecrire/action/editer_objet.php @@ -3,7 +3,7 @@ /***************************************************************************\ * SPIP, Systeme de publication pour l'internet * * * - * Copyright (c) 2001-2012 * + * Copyright (c) 2001-2014 * * Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James * * * * Ce programme est un logiciel libre distribue sous licence GNU/GPL. * @@ -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';