Browse Source

Correction CitiesController

reduction
Guillaume 4 years ago
parent
commit
d2868e751a
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      ShopBundle/Controller/CitiesController.php

+ 1
- 1
ShopBundle/Controller/CitiesController.php View File

@@ -24,7 +24,7 @@ class CitiesController extends AbstractController
'boost' => 'population',
] ;

if(strlen($term) == 5) {
if(strlen($term) == 5 && is_numeric($term)) {
$data['codePostal'] = $term ;
}
else {

Loading…
Cancel
Save