aboutsummaryrefslogtreecommitdiffstats
path: root/perllib/FixMyStreet/Geocode
diff options
context:
space:
mode:
authorMatthew Somerville <matthew@mysociety.org>2012-12-11 15:15:33 +0000
committerMatthew Somerville <matthew@mysociety.org>2012-12-11 15:15:33 +0000
commitd45a81d299a34509c09d31bfb75751bbb9499b4a (patch)
tree3bf260de75054731e67874a936c6b47c61f99ed3 /perllib/FixMyStreet/Geocode
parent52ba9ec5f40ca37bfaf2d41feecf3a86a39a8ff1 (diff)
Don't try and store empty nothing.
Diffstat (limited to 'perllib/FixMyStreet/Geocode')
-rw-r--r--perllib/FixMyStreet/Geocode/Zurich.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/perllib/FixMyStreet/Geocode/Zurich.pm b/perllib/FixMyStreet/Geocode/Zurich.pm
index 83637cd4b..5aaca2c8e 100644
--- a/perllib/FixMyStreet/Geocode/Zurich.pm
+++ b/perllib/FixMyStreet/Geocode/Zurich.pm
@@ -75,7 +75,7 @@ sub string {
}
$result = $result->result;
File::Path::mkpath($cache_dir);
- store $result, $cache_file;
+ store $result, $cache_file if $result;
}
if (!$result || !$result->{Location}) {