bug dans la verif d'adresse
authorx2001corpet <x2001corpet@839d8a87-29fc-0310-9880-83ba4fa771e5>
Wed, 11 Oct 2006 22:11:16 +0000 (22:11 +0000)
committerx2001corpet <x2001corpet@839d8a87-29fc-0310-9880-83ba4fa771e5>
Wed, 11 Oct 2006 22:11:16 +0000 (22:11 +0000)
git-svn-id: svn+ssh://murphy/home/svn/platal/branches/platal-0.9.11@970 839d8a87-29fc-0310-9880-83ba4fa771e5

include/profil/verif_adresses.inc.php

index 05d1208..09e6a46 100644 (file)
@@ -187,9 +187,9 @@ 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']))
+  if (strlen(strtok($adr['city'],"<>{}@~?!§*`|%$^=+")) < strlen($adr['city']))
     {
-      $page->trig("Le champ '$description - Ville' contient un caractère interdit.");
+        $page->trig("Le champ '$description - Ville' contient un caractère interdit.");
     }
   foreach ($adr['tels'] as $tel) {
     if (strlen(strtok($tel['tel'],"<>{}@&#~\/:;?,!§*_`[]|%$^=\"")) < strlen($tel['tel']))