aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Somerville <matthew@fury.ukcod.org.uk>2011-03-25 23:58:55 +0000
committerMatthew Somerville <matthew@fury.ukcod.org.uk>2011-03-25 23:58:55 +0000
commit072f18bff76c213fcc8d40dafe91837fed9a2566 (patch)
treeb9d5bb9a215b4d910a38b9ed60a8913bbac33c98
parent13b283e9467ee1d850a2b25e951593a8f2e8411b (diff)
Variables always defined at this point, compare to empty string.
-rwxr-xr-xweb/index.cgi2
1 files changed, 1 insertions, 1 deletions
diff --git a/web/index.cgi b/web/index.cgi
index c86ac6ad1..eb7ae7f37 100755
--- a/web/index.cgi
+++ b/web/index.cgi
@@ -845,7 +845,7 @@ sub display_location {
return front_page( $q, @errors )
unless ( $x && $y )
|| $input{pc}
- || ( defined $latitude && defined $longitude );
+ || ( $latitude ne '' && $longitude ne '' );
if ( $x && $y ) {