Node.js based forum software built for the modern web
clean up ENDIF conditional if object.value is undefined and is used in an ELSE block
psychobunnya79ca2b13522
diff --git a/public/src/templates.js b/public/src/templates.jsindex 866e076302..086eca12c1 100644--- a/public/src/templates.js+++ b/public/src/templates.js@@ -410,7 +410,8 @@} else {// clean up all undefined conditionalstemplate = template.replace(/<!-- ELSE -->/gi, 'ENDIF -->')- .replace(/<!-- IF([^@]*?)ENDIF([^@]*?)-->/gi, '');+ .replace(/<!-- IF([^@]*?)ENDIF([^@]*?)-->/gi, '')+ .replace(/<!-- ENDIF ([^@]*?)-->/gi, '');}return template;