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

include/profil/verif_adresses.inc.php

index ddb2494..050523e 100644 (file)
@@ -187,7 +187,7 @@ 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.");
     }