* luci/themes/openwrt.org: workaround for empty menu points (seen in statistics)

This commit is contained in:
Jo-Philipp Wich 2008-07-16 02:59:12 +00:00
parent 79a35fe825
commit 6a0a1a5496

View file

@ -111,6 +111,7 @@ local function submenu(prefix, node)
%>
<ul>
<% for j, v in pairs(index) do
if #v.name > 0 then
local nnode = node.nodes[v.name]
local href = controller .. prefix .. v.name
href = (nnode.query) and href .. luci.http.build_querystring(nnode.query) or href
@ -120,6 +121,7 @@ local function submenu(prefix, node)
<% submenu(prefix .. v.name .. "/", nnode) %>
</li>
<% end %>
<% end %>
</ul>
<%
end