diff --git a/www/pages/portefeuille.php b/www/pages/portefeuille.php index 13180341b..9d49acf09 100644 --- a/www/pages/portefeuille.php +++ b/www/pages/portefeuille.php @@ -22,17 +22,21 @@ switch ( $tri ){ } //Liste des surveillances score de l'utilisateur -$filtre = new stdClass(); -$filtre->tri = $triws; -$ws = new WsScores(); -$O = $ws->getPortefeuille(0, $position, $nbAffichage); -$listSurveillance = (array)$O->result; +try { + $O = $client->getPortefeuille(0, $position, $nbAffichage, $triws); + $listSurveillance = $O['results']['reponses']; -$nbReponses = $O->nbReponses; -$nbSurveillances = $O->nbReponsesTotal; + $nbReponses = $O['results']['nbReponses']; + $nbSurveillances = $O['results']['nbReponsesTotal']; -$totPage = ceil($nbSurveillances/$nbAffichage); -$curPage = ceil($position/$nbAffichage); + $totPage = ceil($nbSurveillances/$nbAffichage); + $curPage = ceil($position/$nbAffichage); + +} catch (SoapFault $fault) { + require_once 'soaperror.php'; + processSoapFault($client,$fault,$tabInfo); + die(); +} $maxIndiscore = empty($_SESSION['tabInfo']['typeScore']) ? '100' : $_SESSION['tabInfo']['typeScore']; @@ -311,6 +315,4 @@ if(count($listSurveillance)>0) ?> - - \ No newline at end of file