X-Git-Url: https://git.archive.openwrt.org/?a=blobdiff_plain;f=core%2Fsrc%2Fffluci%2Ftemplate.lua;fp=core%2Fsrc%2Fffluci%2Ftemplate.lua;h=797e9d127a544053b951ecedcbcbf2be6d1bcd54;hb=69bc3fad1f0a49427a06cec47fe6a2b8b07969b8;hp=502013684bdd5679ec2fa95f7d028243251320df;hpb=5ae7b3ee9a6928238f4cd424701b9e969dd68ee8;p=project%2Fluci.git diff --git a/core/src/ffluci/template.lua b/core/src/ffluci/template.lua index 502013684..797e9d127 100644 --- a/core/src/ffluci/template.lua +++ b/core/src/ffluci/template.lua @@ -95,7 +95,7 @@ function compile(template) local r_include = "')\ninclude('%s')\nwrite('" local r_i18n = "'..translate('%1','%2')..'" local r_uci = "'..config('%1','%2','%3')..'" - local r_pexec = "'..%s..'" + local r_pexec = "'..(%s or '')..'" local r_exec = "')\n%s\nwrite('" -- Parse the expressions