This website works better with JavaScript.
Home
Explore
Help
Sign In
Laclic
/
LcShopBundle
Watch
3
Star
2
Fork
0
Code
Issues
0
Pull Requests
0
Releases
0
Wiki
Activity
Browse Source
Correction CitiesController
reduction
Guillaume
4 years ago
parent
f8b68ae78c
commit
d2868e751a
1 changed files
with
1 additions
and
1 deletions
Split View
Show Diff Stats
+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 {
Write
Preview
Loading…
Cancel
Save