inutile de verifier la ville : elle vient direct de geoloc
[platal.git] / include / profil / verif_adresses.inc.php
index 05d1208..c2a6896 100644 (file)
@@ -76,7 +76,7 @@ function replace_ifset_tel($varname, $i, $t){
 
 function get_adr_arg($varname, $i) {
   $tab = Env::v($varname, Array());
-  return $tab[$i];
+  return @$tab[$i];
 }
 
 function set_flag_adr($varname,$i){
@@ -187,10 +187,6 @@ foreach($adresses as $adrid => $adr) {
     {
       $page->trig("Le champ '$description - Code Postal' contient un caractère interdit.");
     }
-  if (strlen(strtok($adr['city'],"<>{}@~?!§*`|%$^=+")) < strlen($adr['postcode']))
-    {
-      $page->trig("Le champ '$description - Ville' contient un caractère interdit.");
-    }
   foreach ($adr['tels'] as $tel) {
     if (strlen(strtok($tel['tel'],"<>{}@&#~\/:;?,!§*_`[]|%$^=\"")) < strlen($tel['tel']))
       {