Diverses corrections
This commit is contained in:
commit
33855b8116
@ -372,15 +372,18 @@ class RechercheController extends Zend_Controller_Action
|
||||
|
||||
// Traitement des données formulaire
|
||||
//$raisonSociale = preg_replace('/[^0-9A-Z]/', ' ', strtoupper($params['raisonSociale']));
|
||||
$raisonSociale = str_replace(array('(',')'), array('', ''), $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 !'); //@todo : Afficher un message
|
||||
$numVoie = '';
|
||||
}
|
||||
|
||||
$libVoie = cleanutf8($params['voie']);
|
||||
$libVoie = str_replace(array('(',')', '/'), array('', '', ' '), $libVoie);
|
||||
|
||||
$cpVille = cleanutf8($params['cpVille']);
|
||||
$cpVille = str_replace(array('(',')', '/'), array('', '', ' '), $cpVille);
|
||||
|
||||
if (preg_match("/^([0-9]{2,5})([\D]*)/i", $cpVille, $matches)) {
|
||||
$cp = trim($matches[1]);
|
||||
|
@ -1,7 +1,7 @@
|
||||
<?php
|
||||
class Application_Controller_Plugin_Theme extends Zend_Controller_Plugin_Abstract
|
||||
{
|
||||
public function routeShutdown($request)
|
||||
public function routeShutdown(Zend_Controller_Request_Abstract $request)
|
||||
{
|
||||
$auth = Zend_Auth::getInstance();
|
||||
$theme = 'default';
|
||||
|
Loading…
x
Reference in New Issue
Block a user