From acf4490c226f97042480858e9e385b4dc5131b7a Mon Sep 17 00:00:00 2001 From: Michael RICOIS Date: Wed, 1 Feb 2012 16:58:38 +0000 Subject: [PATCH] Suppression controle idClient --- application/controllers/EnvoiController.php | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/application/controllers/EnvoiController.php b/application/controllers/EnvoiController.php index 795ee2e6..b3f3f546 100644 --- a/application/controllers/EnvoiController.php +++ b/application/controllers/EnvoiController.php @@ -46,16 +46,11 @@ class EnvoiController extends Zend_Controller_Action $request = $this->getRequest(); $name = $request->getParam('ref', ''); - $idClient = $request->getParam('client', ''); + $idClient = $request->getParam('client'); if (empty($name)) { echo "Référence non définie."; - } - - if ($idClient!='') { - echo "Client non définie."; - } - - if (!empty($name) && !empty($idClient)) + } + else { $config = new Zend_Config_Ini(APPLICATION_PATH . '/configs/configuration.ini', 'path'); $path = realpath($config->data).'/validation';