From d79895c0c3d8ac11e34a59a60e11d304c01fb08f Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Sat, 20 Nov 2010 18:24:17 +0000 Subject: libs/web: fix DynList template for empty values --- libs/web/luasrc/view/cbi/dynlist.htm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libs/web/luasrc') diff --git a/libs/web/luasrc/view/cbi/dynlist.htm b/libs/web/luasrc/view/cbi/dynlist.htm index 90f3f1e90..5914186c2 100644 --- a/libs/web/luasrc/view/cbi/dynlist.htm +++ b/libs/web/luasrc/view/cbi/dynlist.htm @@ -18,7 +18,7 @@ $Id$ local vals = self:cfgvalue(section) or {} for i=1, #vals + 1 do local val = vals[i] - if val and #val > 0 then + if (val and #val > 0) or (i == 1) then %>