From: Jo-Philipp Wich Date: Wed, 5 Aug 2009 00:52:51 +0000 (+0000) Subject: libs/web: template: fix spurious nil or false values that broke various templates X-Git-Tag: 0.10.0~1262 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=67150c34a103fe89a0e32d16169f958e2758ca56;p=oweals%2Fluci.git libs/web: template: fix spurious nil or false values that broke various templates --- diff --git a/libs/web/src/template_parser.c b/libs/web/src/template_parser.c index 9618919b3..fe324cedc 100644 --- a/libs/web/src/template_parser.c +++ b/libs/web/src/template_parser.c @@ -21,12 +21,12 @@ /* leading and trailing code for different types */ const char * gen_code[6][2] = { - { "write(\"", "\")" }, - { NULL, NULL }, - { "write(tostring(", "))" }, - { "include(\"", "\")" }, - { "write(translate(\"", "\"))" }, - { NULL, " " } + { "write(\"", "\")" }, + { NULL, NULL }, + { "write(tostring(", " or \"\"))" }, + { "include(\"", "\")" }, + { "write(translate(\"", "\"))" }, + { NULL, " " } }; /* Simple strstr() like function that takes len arguments for both haystack and needle. */