From 0aa87a3032756c53f4fd35417f633e5621e3e727 Mon Sep 17 00:00:00 2001 From: Michael RICOIS Date: Tue, 25 Oct 2011 07:31:44 +0000 Subject: [PATCH] =?UTF-8?q?Suppression=20des=20parenth=C3=A8ses?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/controllers/RechercheController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/application/controllers/RechercheController.php b/application/controllers/RechercheController.php index e2264b24a..0a403dad8 100644 --- a/application/controllers/RechercheController.php +++ b/application/controllers/RechercheController.php @@ -344,7 +344,7 @@ class RechercheController extends Zend_Controller_Action // Traitement des données formulaire //$raisonSociale = preg_replace('/[^0-9A-Z]/', ' ', strtoupper($params['raisonSociale'])); - $raisonSociale = $params['raisonSociale']; + $raisonSociale = str_replace(array('(',')'), array('', ''), $params['raisonSociale']); $numVoie = preg_replace('/[^0-9]/', '', $params['numero']); if ($numVoie > 9999) { die('Numéro de voie incorrecte !');