summaryrefslogtreecommitdiffhomepage
path: root/libs/cbi/luasrc
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2008-10-30 02:39:54 +0000
committerJo-Philipp Wich <jow@openwrt.org>2008-10-30 02:39:54 +0000
commit50442d7438766d8d67b33167978c23eb7713375c (patch)
tree73297cdf159e1cd36a393408f7bcbe4dec1e212a /libs/cbi/luasrc
parent0543ad6f4f17c719e9864e1adb4f89f0e7a3f8ab (diff)
* luci/libs/cbi: fix possible "Error in template cbi/full_valuefooter: ?:0: attempt to get length of field 'description' (a nil value)"
Diffstat (limited to 'libs/cbi/luasrc')
-rw-r--r--libs/cbi/luasrc/view/cbi/full_valuefooter.htm4
1 files changed, 2 insertions, 2 deletions
diff --git a/libs/cbi/luasrc/view/cbi/full_valuefooter.htm b/libs/cbi/luasrc/view/cbi/full_valuefooter.htm
index a9596441b5..0ae45fb328 100644
--- a/libs/cbi/luasrc/view/cbi/full_valuefooter.htm
+++ b/libs/cbi/luasrc/view/cbi/full_valuefooter.htm
@@ -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 %> \ No newline at end of file
+<%- end %>