Skip to content
Snippets Groups Projects
Commit 020169f2 authored by Nils Schneider's avatar Nils Schneider
Browse files

gluon-config-mode: fix coordinates when disabled

parent 59a28c67
No related branches found
No related tags found
No related merge requests found
......@@ -118,7 +118,7 @@ function f.handle(self, state, data)
local sname = uci:get_first("gluon-node-info", "location")
uci:set("gluon-node-info", sname, "share_location", data._location)
if data._location then
if data._location and data._latitude ~= nil and data._longitude ~= nil then
uci:set("gluon-node-info", sname, "latitude", data._latitude)
uci:set("gluon-node-info", sname, "longitude", data._longitude)
end
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment