From c97312b21e1201c2cacd7d3ffe0ffd036c1ee431 Mon Sep 17 00:00:00 2001 From: Michael RICOIS Date: Thu, 2 Feb 2012 09:40:58 +0000 Subject: [PATCH] Ajout de todo --- library/Scores/RapportComment.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/library/Scores/RapportComment.php b/library/Scores/RapportComment.php index f40fa3a6e..69d18510a 100644 --- a/library/Scores/RapportComment.php +++ b/library/Scores/RapportComment.php @@ -29,10 +29,10 @@ class RapportComment $this->siren = substr($siret, 0,9); //Traitement des ratios - foreach($ratios->RatiosInfos->item as $item){ + foreach($ratios->RatiosInfos->item as $item){ //@todo : protection $this->ratiosInfos[$item->id] = $item; } - foreach($ratios->BilansInfos->item as $item){ + foreach($ratios->BilansInfos->item as $item){ //@todo : protection if ($item->typeBilan == 'N') { $this->bilansInfos[$item->dateCloture] = $item; foreach($item->RatiosEntrep->item as $ratiosItem){ @@ -43,7 +43,7 @@ class RapportComment ksort($this->bilansInfos); ksort($this->ratiosEntrep); - foreach($ratios->RatiosSecteur->item as $item){ + foreach($ratios->RatiosSecteur->item as $item){ //@todo : protection foreach($item->liste->item as $ratiosItem){ $this->ratiosSecteur[$item->annee][$ratiosItem->id] = $ratiosItem->val; } @@ -539,7 +539,7 @@ class RapportComment 'style' => $matches[2], ); $tabRatio = $tabProjection[$titreRatio.'_Y']; - krsort($tabRatio); + krsort($tabRatio); // @todo : il se peut que $tabRatio = null foreach ( $tabRatio as $key => $valRatio ){ $index = (int)substr($key,0,4); $data[$index][$nbRatio] = $valRatio;