Diverses corrections

This commit is contained in:
Michael RICOIS 2012-04-18 12:26:45 +00:00
commit 33855b8116
2 changed files with 6 additions and 3 deletions

View File

@ -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]);

View File

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