diff options
author | Matthew Somerville <matthew@mysociety.org> | 2012-12-11 15:15:33 +0000 |
---|---|---|
committer | Matthew Somerville <matthew@mysociety.org> | 2012-12-11 15:15:33 +0000 |
commit | d45a81d299a34509c09d31bfb75751bbb9499b4a (patch) | |
tree | 3bf260de75054731e67874a936c6b47c61f99ed3 | |
parent | 52ba9ec5f40ca37bfaf2d41feecf3a86a39a8ff1 (diff) |
Don't try and store empty nothing.
-rw-r--r-- | perllib/FixMyStreet/Geocode/Zurich.pm | 2 |
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}) { |