diff --git a/public/src/ajaxify.js b/public/src/ajaxify.js index 12ede65135..7b8cf215fb 100644 --- a/public/src/ajaxify.js +++ b/public/src/ajaxify.js @@ -77,7 +77,7 @@ var ajaxify = {}; templates.load_template(function () { exec_body_scripts(content); require(['forum/' + tpl_url], function(script) { - if (script) script.init(); + if (script && script.init) script.init(); }); if (callback) {