Skip to content

Commit

Permalink
Fixed #23: Anzeige der Nachfolge-LEI, falls existent.
Browse files Browse the repository at this point in the history
  • Loading branch information
DamianMalik committed Nov 22, 2022
1 parent b645dd9 commit f733c15
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion index.php
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,14 @@ class="btn btn-outline-dark btn-sm font-Bitter mr-1"
echo '<button type="button" class="btn btn-danger btn-sm font-Bitter mr-1" disabled><b>'
. $json_content_LEI['data']['attributes']['entity']['status']
. '</b></button>';
}
# Anzeige der Nachfolge-LEI, falls LEI nicht mehr aktiv
if( isset( $json_content_LEI['data']['attributes']['entity']['successorEntity']['lei'] ) ){
$NachfolgeLEI = $json_content_LEI['data']['attributes']['entity']['successorEntity']['lei'];
echo '<h3><span class="badge badge-warning">🆕 ' . $NachfolgeLEI . '</span></h3>';
} else {
echo '<h3><span class="badge badge-warning">keine Nachfolge-LEI bekannt</span></h3>';
}
}
?>

<div id="demo" class="pt-3 small collapse font-Bitter">
Expand Down

0 comments on commit f733c15

Please sign in to comment.