Closed (fixed)
Project:
IP Geolocation Views & Maps
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
2 Oct 2012 at 22:10 UTC
Updated:
17 Oct 2012 at 05:11 UTC
Hi Rik,
Thought you might like to know that sometimes, when no current location info is available, but the PHP from the module page is in an exposed filter for proximity from location the following comes up directly above the map:
Notice: Undefined index: latitude in eval() (line 2 of /home/spot/public_html/sites/all/modules/location/location.views.inc(509) : eval()'d code).
Notice: Undefined index: longitude in eval() (line 3 of /home/spot/public_html/sites/all/modules/location/location.views.inc(509) : eval()'d code).
Best,
Danny.
Comments
Comment #1
rdeboerThanks Danny,
Can you please copy the PHP you are using into this thread and I'll give you a more robust version that won't have the error msgs.
Rik
Comment #2
Funksmaname commentedThanks, I copied it from your module page:
Comment #3
rdeboerTry this...
I'm not at my development environment at the moment, so can't test. This should get rid of the old notices, but may introduce a new one, as I'm not sure what the Location proximity field/filter does when you give it "empty".
Give it a go.
Rik
Comment #4
Funksmaname commentedThanks again Rik, that seems to have done the trick. Will report back if anything funky happens.
btw, any reason why rectangular or circular proximity would be better than the other?
Comment #5
rdeboerRe #4
Cool. I'll update the project page.
As for rectangular vs circular.... Good question for the Location module maintainer! But my suspicion is that it comes down to personal preference rather than one being "better" than the other.
Rik