mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-01-08 00:22:51 +01:00
closes #1455
This commit is contained in:
@@ -62,7 +62,7 @@
|
||||
|
||||
if (!templates.cache[tpl]) {
|
||||
fs.readFile(filename, function(err, html) {
|
||||
templates.cache[tpl] = html.toString();
|
||||
templates.cache[tpl] = (html || '').toString();
|
||||
return fn(err, templates.parse(templates.cache[tpl], options));
|
||||
});
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user