Notice: Undefined variable: dash_index in location_get_postalcode_data_de() in supported/

It is caused by the line:

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

Which should only have a single =

Members fund testing for the Drupal project. Drupal Association Learn more


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:

thissideup’s picture

Status: Active » Patch (to be ported)
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