* luci/libs/cbi: fix possible "Error in template cbi/full_valuefooter: ?:0: attempt to get length of field 'description' (a nil value)"
This commit is contained in:
parent
0543ad6f4f
commit
50442d7438
1 changed files with 2 additions and 2 deletions
|
@ -13,7 +13,7 @@ $Id$
|
|||
|
||||
-%>
|
||||
|
||||
<% if #self.description > 0 then -%>
|
||||
<% if self.description and #self.description > 0 then -%>
|
||||
<% if not luci.util.instanceof( self, luci.cbi.Flag ) then -%>
|
||||
<br />
|
||||
<%- end %>
|
||||
|
@ -42,4 +42,4 @@ $Id$
|
|||
}, "cbip-<%=self.config.."-"..section.."-"..self.option%>");
|
||||
<%- end %>
|
||||
</script>
|
||||
<%- end %>
|
||||
<%- end %>
|
||||
|
|
Loading…
Reference in a new issue