From f6a31a8fc459a078a97404ebd01789bcce3adee5 Mon Sep 17 00:00:00 2001 From: Michael RICOIS Date: Thu, 6 Oct 2011 10:09:31 +0000 Subject: [PATCH] =?UTF-8?q?Correction=20pour=20liste=20des=20=C3=A9tabliss?= =?UTF-8?q?ements?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- library/Scores/WsScores.php | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/library/Scores/WsScores.php b/library/Scores/WsScores.php index c881b22d9..ee44e04e9 100644 --- a/library/Scores/WsScores.php +++ b/library/Scores/WsScores.php @@ -1202,7 +1202,10 @@ class WsScores */ public function getListeEtablissements($siren, $actif = -1) { - $filename = 'listeetablissements-'.$siren.'-'.$actif; + $filename = 'listeetablissements-'.$siren; + if ($actif != -1){ + $filename.= '-'.$actif; + } $cache = new Cache($filename); if ($cache->exist() && !$this->toNotCache ){ return $cache->getBlock(); @@ -1286,14 +1289,12 @@ class WsScores /** * Enregistre ou modifie un client * @param unknown_type $infos - * @param unknown_type $idModele * @return boolean */ - public function setClient($infos, $idModele = null) + public function setClient($infos) { $params = new stdClass(); - $params->infos = $infos; - $params->idModele = $idModele; + $params->infos = json_encode($infos); try { $client = $this->loadClient('interne'); $reponse = $client->setClient($params);