diff options
Diffstat (limited to 'applications/luci-app-dawn/luasrc/model/cbi/dawn')
-rw-r--r-- | applications/luci-app-dawn/luasrc/model/cbi/dawn/dawn_hearing_map.lua | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/applications/luci-app-dawn/luasrc/model/cbi/dawn/dawn_hearing_map.lua b/applications/luci-app-dawn/luasrc/model/cbi/dawn/dawn_hearing_map.lua index d277865503..3ba5329855 100644 --- a/applications/luci-app-dawn/luasrc/model/cbi/dawn/dawn_hearing_map.lua +++ b/applications/luci-app-dawn/luasrc/model/cbi/dawn/dawn_hearing_map.lua @@ -38,6 +38,7 @@ function s.render(self, sid) local mac2, data2 local count_loop = 0 for mac2, data2 in pairs(data) do + if data2.freq ~= 0 then --prevent empty entry crashes %> <tr class="tr"> <td class="td"><%= (count_loop == 0) and mac or "" %></td> @@ -53,7 +54,8 @@ function s.render(self, sid) <td class="td"><%= "%d" % data2.score %></td> </tr> <% - count_loop = count_loop + 1 + count_loop = count_loop + 1 + end end end %> |