/trunk/services/modules/0.1/coste/Textes.php |
---|
168,7 → 168,7 |
$clef_index = $params['retour.indexBy'] == 'coste' ? 'coste:nn' : 'bdtfx:nn'; |
$res2 = array(); |
foreach($res as $v) { |
if(!$v[$clef_index]) throw new Exception('format error: index NULL, use retour.indexBy=coste', 400); |
if(!$v[$clef_index]) throw new Exception('format error: index NULL, use retour.indexBy=coste', 409); |
$res2[$v[$clef_index]] = $v; |
} |