* luci/libs/cbi: fix possible "Error in template cbi/full_valuefooter: ?:0: attempt...
authorJo-Philipp Wich <jow@openwrt.org>
Thu, 30 Oct 2008 02:39:54 +0000 (02:39 +0000)
committerJo-Philipp Wich <jow@openwrt.org>
Thu, 30 Oct 2008 02:39:54 +0000 (02:39 +0000)
libs/cbi/luasrc/view/cbi/full_valuefooter.htm

index a959644..0ae45fb 100644 (file)
@@ -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 %>
                        <% 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>
                        }, "cbip-<%=self.config.."-"..section.."-"..self.option%>");
                <%- end %>
        </script>
-<%- end %>
\ No newline at end of file
+<%- end %>