Node.js based forum software built for the modern web
fixed #1144
Julian Lam5e2460e17e23
diff --git a/src/plugins.js b/src/plugins.jsindex 4d01840498..9462785054 100644--- a/src/plugins.js+++ b/src/plugins.js@@ -246,7 +246,7 @@ var fs = require('fs'),`data.priority`, the relative priority of the method when it is eventually called (default: 10)*/- if (data.hook && data.method) {+ if (data.hook && data.method && typeof data.method === 'string' && data.method.length > 0) {data.id = id;if (!data.priority) data.priority = 10;data.method = data.method.split('.').reduce(function(memo, prop) {