summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-app-olsr-services/luasrc/view/freifunk-services/services.htm
diff options
context:
space:
mode:
authorManuel Munz <munz@comuno.net>2015-02-19 20:33:26 +0100
committerManuel Munz <munz@comuno.net>2015-02-19 20:33:26 +0100
commit47603a37ed581303d8a5241f6cd39433918a1b96 (patch)
tree6a6778a98c41a1c43ea3efa6c702f20123ac32f5 /applications/luci-app-olsr-services/luasrc/view/freifunk-services/services.htm
parent8b123df2874a6eb17a6150667ba48247bad847ec (diff)
applications/olsr-services: fix error on public services page
Diffstat (limited to 'applications/luci-app-olsr-services/luasrc/view/freifunk-services/services.htm')
-rw-r--r--applications/luci-app-olsr-services/luasrc/view/freifunk-services/services.htm8
1 files changed, 4 insertions, 4 deletions
diff --git a/applications/luci-app-olsr-services/luasrc/view/freifunk-services/services.htm b/applications/luci-app-olsr-services/luasrc/view/freifunk-services/services.htm
index 7142c77b3..0e59c6125 100644
--- a/applications/luci-app-olsr-services/luasrc/view/freifunk-services/services.htm
+++ b/applications/luci-app-olsr-services/luasrc/view/freifunk-services/services.htm
@@ -93,9 +93,9 @@ if luci.http.formvalue("status") == "1" then
local rv = {}
for k, line in ipairs(services) do
local field = utl.split(line, "[#|]", split, true)
- local origin_lnk = ip.IPv6(pcdata(field[4])) or ""
+ local origin_lnk = ip.IPv6(pcdata(field[4]))
local origin_link = ""
- if #origin_lnk ~= 0 and origin_lnk:is6() then
+ if origin_lnk and origin_lnk:is6() then
origin_link = "["..origin_lnk:string().."]"
else
origin_link = pcdata(field[4])
@@ -168,9 +168,9 @@ end
local field = {}
-- split line at # and |, 1=url, 2=proto, 3=description, 4=source
local field = utl.split(line, "[#|]", split, true)
- local origin_lnk = ip.IPv6(pcdata(field[4])) or ""
+ local origin_lnk = ip.IPv6(pcdata(field[4]))
local origin_link
- if #origin_lnk ~= 0 and origin_lnk:is6() then
+ if origin_lnk and origin_lnk:is6() then
origin_link = "["..origin_lnk:string().."]"
else
origin_link = pcdata(field[4])