I have a content type with a Geocoded address. Every time I submit a new node I get the following warning:
warning: Invalid argument supplied for foreach() in D:\www\vhosts\tlc2.tld\sites\all\modules\gmaps\gmaps_content.module on line 2662.
Line 2662 is foreach($address as $key => $value) {
This warning seems to not cause any malfunctions but I would like to know what is going on.
Thanks

Comments

xmarket’s picture

Somethink wrong in the token integration. (I couldn't find the bug yet...)

To remove the warning do this:

foreach((array)$address as $key => $value) {

xmarket’s picture

Status: Active » Fixed

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.