mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-29 01:56:12 +01:00
closes #2578
This commit is contained in:
@@ -31,7 +31,7 @@ module.exports = function(Plugins) {
|
||||
|
||||
if (typeof data.method === 'string' && data.method.length > 0) {
|
||||
method = data.method.split('.').reduce(function(memo, prop) {
|
||||
if (memo !== null && memo[prop]) {
|
||||
if (memo && memo[prop]) {
|
||||
return memo[prop];
|
||||
} else {
|
||||
// Couldn't find method by path, aborting
|
||||
|
||||
Reference in New Issue
Block a user