Notice: Undefined variable: dash_index in location_get_postalcode_data_de() in supported/location.de.inc).

It is caused by the line:

  $dash_index == strpos($location['postal_code'], '-');

Which should only have a single =

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Reen’s picture

Why does noone fix this? Every time I install a new version I have to fix this nasty bug myself.

ankur’s picture

@Reen in #1:

I'm glad you're able to fix this bug. Please submit a patch using the instructions here:

http://drupal.org/project/location/git-instructions

thissideup’s picture

Status: Active » Patch (to be ported)
FileSize
623 bytes

stumbled upon it in the latest d7 as well. patched as Reen suggested and works. patch needs d6 port and review.

ankur’s picture

Status: Patch (to be ported) » Closed (fixed)

Thanks for the patch. Applied to 6.x-3.x/7.x-3.x/7.x-5.x