From: x2001corpet Date: Wed, 11 Oct 2006 22:12:49 +0000 (+0000) Subject: backport : fix bug dans la verif d'adresse X-Git-Tag: xorg/0.9.12~209 X-Git-Url: http://git.polytechnique.org/?a=commitdiff_plain;h=14cac9590f6b1a5a1e73a547b612c4fc468ed62e;p=platal.git backport : fix bug dans la verif d'adresse git-svn-id: svn+ssh://murphy/home/svn/platal/trunk@971 839d8a87-29fc-0310-9880-83ba4fa771e5 --- diff --git a/include/profil/verif_adresses.inc.php b/include/profil/verif_adresses.inc.php index ddb2494..050523e 100644 --- a/include/profil/verif_adresses.inc.php +++ b/include/profil/verif_adresses.inc.php @@ -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."); }