diff --git a/application/controllers/EvaluationController.php b/application/controllers/EvaluationController.php index d73875de2..8b9aedd88 100644 --- a/application/controllers/EvaluationController.php +++ b/application/controllers/EvaluationController.php @@ -21,7 +21,10 @@ class EvaluationController extends Zend_Controller_Action ->appendStylesheet('/themes/default/styles/evaluation.css', 'all'); } - public function indexAction(){} + public function indexAction() + { + $this->_forward('entreprise', 'recherche'); + } public function printscoresAction() { @@ -74,6 +77,9 @@ class EvaluationController extends Zend_Controller_Action if (empty($autrePage)) { $ws = new WsScores(); $infos = $ws->getIndiScore(substr($this->siret, 0,9)); + + if ($infos === false) $this->_forward('soap', 'error'); + } else { $infos = $this->getRequest()->getParam('infos'); }