undifinded variable...

This commit is contained in:
Damien LASSERRE 2011-12-19 09:46:24 +00:00
parent 6a34fa7c35
commit eb2fafd134

View File

@ -40,29 +40,30 @@ class IndexController extends Zend_Controller_Action
require_once 'Scores/SessionCiblage.php';
$session = new Zend_Session_Namespace('ciblage');
foreach($session->ciblage as $item => $valeur) {
if (in_array($item, $this->entreprise))
$entreprise[$item] = $valeur;
else if (in_array($item, $this->economique))
$economique[$item] = $valeur;
else if (in_array($item, $this->geographique))
$geographique[$item] = $valeur;
else if (in_array($item, $this->financier))
$financier[$item] = $valeur;
else if (in_array($item, $this->juridique))
$juridique[$item] = $valeur;
if(!empty($session->ciblage)) {
foreach($session->ciblage as $item => $valeur) {
if (in_array($item, $this->entreprise))
$entreprise[$item] = $valeur;
else if (in_array($item, $this->economique))
$economique[$item] = $valeur;
else if (in_array($item, $this->geographique))
$geographique[$item] = $valeur;
else if (in_array($item, $this->financier))
$financier[$item] = $valeur;
else if (in_array($item, $this->juridique))
$juridique[$item] = $valeur;
}
$nbCriteres = count($entreprise);
$Count['entreprise'] = $nbCriteres;
$nbCriteres = count($geographique);
$Count['geographique'] = $nbCriteres;
$nbCriteres = count($juridique);
$Count['juridique'] = $nbCriteres;
$nbCriteres = count($financier);
$Count['financier'] = $nbCriteres;
$nbCriteres = count($economique);
$Count['economique'] = $nbCriteres;
}
$nbCriteres = count($entreprise);
$Count['entreprise'] = $nbCriteres;
$nbCriteres = count($geographique);
$Count['geographique'] = $nbCriteres;
$nbCriteres = count($juridique);
$Count['juridique'] = $nbCriteres;
$nbCriteres = count($financier);
$Count['financier'] = $nbCriteres;
$nbCriteres = count($economique);
$Count['economique'] = $nbCriteres;
$this->view->Count = $Count;
$this->view->entreprise = $entreprise;