Suppression controle idClient

This commit is contained in:
Michael RICOIS 2012-02-01 16:58:38 +00:00
parent 625471e2c7
commit acf4490c22

View File

@ -46,16 +46,11 @@ class EnvoiController extends Zend_Controller_Action
$request = $this->getRequest(); $request = $this->getRequest();
$name = $request->getParam('ref', ''); $name = $request->getParam('ref', '');
$idClient = $request->getParam('client', ''); $idClient = $request->getParam('client');
if (empty($name)) { if (empty($name)) {
echo "Référence non définie."; echo "Référence non définie.";
} }
else
if ($idClient!='') {
echo "Client non définie.";
}
if (!empty($name) && !empty($idClient))
{ {
$config = new Zend_Config_Ini(APPLICATION_PATH . '/configs/configuration.ini', 'path'); $config = new Zend_Config_Ini(APPLICATION_PATH . '/configs/configuration.ini', 'path');
$path = realpath($config->data).'/validation'; $path = realpath($config->data).'/validation';