Correction pour liste des établissements

This commit is contained in:
Michael RICOIS 2011-10-06 10:09:31 +00:00
parent 77861e138a
commit f6a31a8fc4

View File

@ -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);