[dev] Patch for MAPQUEST URL... (again)

Marc Jauvin marc at register4less.com
Fri Dec 6 21:17:46 2002


The test for the Canadian Postal Code has to be within the IF block that tests
if $addressParts[4] is not empty...



Index: display.inc
===================================================================
RCS file: /repository/turba/templates/display/display.inc,v
retrieving revision 1.32
diff -r1.32 display.inc
74,76c74,76
<             }
<             if (preg_match('|[a-zA-Z]\d[a-zA-Z]\s?\d[a-zA-Z]\d|',
$addressParts[4])) {
<                 $mapurl = Horde::addParameter($mapurl, 'country=CA');
---
>                 if (preg_match('|[a-zA-Z]\d[a-zA-Z]\s?\d[a-zA-Z]\d|',
$addressParts[4])) {
>                     $mapurl = Horde::addParameter($mapurl, 'country=CA');
>                 }






--<marc

http://Register4less.com
tel.: 450-441-5458



More information about the dev mailing list