Sometimes, the latitude or longitude seems to end up as the string "0.000000". When this happens the location is displayed in the location template, since "0.000000" evaluates to true as a string.

I can reproduce this by geocoding an invalid address with Google.

I have fixed this in my version by comparing the latitude and longitude numerically with zero.

CommentFileSizeAuthor
location-zerolatlon.patch713 bytesscottgifford

Comments

bdragon’s picture

Status: Needs review » Fixed

Committed, with changes.
I really think *one* of the two should be allowed to be 0.000000.

Anonymous’s picture

Status: Fixed » Closed (fixed)

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