Closed (duplicate)
Project:
Location
Version:
7.x-4.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
23 Nov 2011 at 22:00 UTC
Updated:
20 Jun 2012 at 16:34 UTC
Jump to comment: Most recent file
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'], '-');
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | [zip-code-de]-[1350988]-[1].patch | 583 bytes | xzzyy93334 |
Comments
Comment #1
xzzyy93334 commentedI created a patch for this issue
Comment #2
johnvthis was also reported and fixed in #1056030: Notice: Undefined variable: dash_index in location_get_postalcode_data_de() in supported/location.de.inc for all other versions except 7.x-.4.x
Comment #3
smitty commented