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';