aboutsummaryrefslogtreecommitdiffstats
path: root/bin/send-reports
diff options
context:
space:
mode:
authorMatthew Somerville <matthew@dracos.co.uk>2011-03-23 22:43:31 +0000
committerMatthew Somerville <matthew@dracos.co.uk>2011-03-23 22:43:31 +0000
commit4dbbf7b6c6c4dd8e0bc66517fc8669efc8f8b627 (patch)
tree2e68b8ad8f19ecbeb4b37f21e92e838711a5d72a /bin/send-reports
parent15c437a3ee927faac2f95db752285bf547e6cc4f (diff)
Return string, not undef.
Diffstat (limited to 'bin/send-reports')
-rwxr-xr-xbin/send-reports2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/send-reports b/bin/send-reports
index 6fc1f74ec..96f259d5c 100755
--- a/bin/send-reports
+++ b/bin/send-reports
@@ -350,7 +350,7 @@ sub find_closest {
my ($row, $latitude, $longitude) = @_;
my $str = '';
- return unless $row->{used_map};
+ return '' unless $row->{used_map};
# Get nearest road-type thing from Bing
my $url = "http://dev.virtualearth.net/REST/v1/Locations/$latitude,$longitude?c=en-GB&key=" . mySociety::Config::get('BING_MAPS_API_KEY');