On limite pour les paramètres hors associations

This commit is contained in:
Michael RICOIS 2011-08-24 12:57:51 +00:00
parent e5b024cc04
commit 25ed29184a

View File

@ -622,11 +622,12 @@ class Menu
if (!empty($this->id)) { $params['id'] = $this->id; }
switch($action){
case 'annonces':
require_once 'Scores/SessionEntreprise.php';
$session = new SessionEntreprise($this->siret, $this->id);
$params['idAnn'] = $session->getSourceId();
$params['source'] = $session->getSource();
if (empty($this->siret) || intval($this->siret)==0){
require_once 'Scores/SessionEntreprise.php';
$session = new SessionEntreprise($this->siret, $this->id);
$params['idAnn'] = $session->getSourceId();
$params['source'] = $session->getSource();
}
break;
}
break;