aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormatthew <matthew>2007-06-18 20:13:22 +0000
committermatthew <matthew>2007-06-18 20:13:22 +0000
commitc29b068c27a178b16d66ae999afe6e97b3e05588 (patch)
treea936ab2b6e179f2ec97bf8150ccd3ba22f0a45d9
parent14879e956bad138ebeb8b1bc99675b377da830dd (diff)
longitude could be 0.
-rwxr-xr-xweb/rss.cgi4
1 files changed, 2 insertions, 2 deletions
diff --git a/web/rss.cgi b/web/rss.cgi
index a83216fde..d0ca44755 100755
--- a/web/rss.cgi
+++ b/web/rss.cgi
@@ -6,7 +6,7 @@
# Copyright (c) 2007 UK Citizens Online Democracy. All rights reserved.
# Email: matthew@mysociety.org. WWW: http://www.mysociety.org
#
-# $Id: rss.cgi,v 1.14 2007-06-18 20:11:44 matthew Exp $
+# $Id: rss.cgi,v 1.15 2007-06-18 20:13:22 matthew Exp $
use strict;
require 5.8.0;
@@ -45,7 +45,7 @@ sub main {
my $lat = $q->param('lat');
my $lon = $q->param('lon');
my ($e, $n);
- if ($lat && $lon) {
+ if ($lat) { # In the UK, it'll never be 0 :)
($e, $n) = mySociety::GeoUtil::wgs84_to_national_grid($lat, $lon, 'G');
$x = Page::os_to_tile($e);
$y = Page::os_to_tile($n);