610,6 → 610,8 |
// pour chaque taxon mentionné (inefficace mais évite d'implémenter un |
// mode liste sur le service eflore/sptb |
$squeletteUrlSptb = Config::get("url_sptb"); |
$statuts != array(); |
|
foreach ($resultat as $res) { |
$nn = $res['num_nom']; |
//echo "NN: $nn\n"; |
618,12 → 620,11 |
//echo "URL: $url\n"; |
$statuts = $this->chargerDonnees($url); |
//echo "STATUTS: " . print_r($statuts, true) . "\n"; |
if (count($statuts) > 0) { |
if ($statuts != array() && array_count_values($statuts) > 0) { |
$json = array(); |
foreach ($statuts as $statut) { |
$nouveauStatut = array(); |
$nouveauStatut['zone'] = $statut['code_zone_application']; |
$nouveauStatut['lien'] = $statut['hyperlien_legifrance']; |
$json[] = $nouveauStatut; |
} |
// Si au moins un statut |