Errormessage:
Notice: Undefined variable: dash_index in location_get_postalcode_data_de() (line 243 of C:\xampplite\htdocs\drupal7\sites\all\modules\location\supported\location.de.inc).
Notice: Undefined variable: dash_index in location_get_postalcode_data_de() (line 245 of C:\xampplite\htdocs\drupal7\sites\all\modules\location\supported\location.de.inc).

line 243:

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

as you can see it should be one equal sign.

this worked for me, please review:

$dash_index = strpos($location['postal_code'], '-');
CommentFileSizeAuthor
#1 [zip-code-de]-[1350988]-[1].patch583 bytesxzzyy93334

Comments

xzzyy93334’s picture

Status: Active » Needs review
StatusFileSize
new583 bytes

I created a patch for this issue

johnv’s picture

Status: Needs review » Reviewed & tested by the community
smitty’s picture

Status: Reviewed & tested by the community » Closed (duplicate)