From e1d4c82256f83b8f24395729f3eb5f18533185bf Mon Sep 17 00:00:00 2001 From: Darryl Quinn Date: Mon, 7 Dec 2015 15:41:34 -0600 Subject: [PATCH] bugfix: test/update grid square to message appears when appropriate --- files/www/cgi-bin/admin | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/files/www/cgi-bin/admin b/files/www/cgi-bin/admin index cdb64d38..cabe7c6d 100755 --- a/files/www/cgi-bin/admin +++ b/files/www/cgi-bin/admin @@ -443,8 +443,11 @@ foreach(`zcat /etc/opkg.list.gz 2>/dev/null`) # if($parms{button_location}) { - system "echo '$parms{gridsquare}' > /etc/gridsquare" if $parms{gridsquare}; - push @loc_output, "Gridsquare updated.\n"; + if($parms{gridsquare}) + { + system "echo '$parms{gridsquare}' > /etc/gridsquare" if $parms{gridsquare}; + push @loc_output, "Gridsquare updated.\n"; + } if($parms{latitude} and $parms{longitude}) { system "echo '$parms{latitude}' > /etc/latlon";