diff --git a/Controleur/ControleurAccueil.php b/Controleur/ControleurAccueil.php index fb0314d..c5853b9 100755 --- a/Controleur/ControleurAccueil.php +++ b/Controleur/ControleurAccueil.php @@ -43,13 +43,13 @@ class ControleurAccueil extends Controleur { $dataTabClaims = json_encode($tabclaims, JSON_NUMERIC_CHECK); // Evolution des sinistres par mois - $claimsMonth = $this->synthese->getClaimsMonth(); - $claimsMonth = $this->synthese->getClaimsSingleMonth(); + $claimsMonth = $this->synthese->getClaimsMonth(); + $claimsSingleMonth = $this->synthese->getClaimsSingleMonth(); $tabclaimsMonth = [ 'months' => array_column($claimsMonth, 'months'), 'monthlyClaims' => array_column($claimsMonth, 'monthlyClaims'), - 'singleClaims' => array_column($claimsMonth, 'singleClaims') + 'singleClaims' => array_column($claimsSingleMonth, 'singleClaims') ]; $dataTabClaimsMonth = json_encode($tabclaimsMonth, JSON_NUMERIC_CHECK);