From: Jo-Philipp Wich Date: Sat, 20 Nov 2010 18:24:17 +0000 (+0000) Subject: libs/web: fix DynList template for empty values X-Git-Tag: 0.10.0~403 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=d79895c0c3d8ac11e34a59a60e11d304c01fb08f;p=oweals%2Fluci.git libs/web: fix DynList template for empty values --- 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 %>