mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-29 18:16:17 +01:00
fixed issue with server crashing on post
This commit is contained in:
@@ -185,7 +185,7 @@ var fs = require('fs'),
|
||||
} else {
|
||||
// Otherwise, this hook contains no methods
|
||||
var returnVal = (Array.isArray(args) ? args[0] : args);
|
||||
if (callback) callback(err, returnVal);
|
||||
if (callback) callback(null, returnVal);
|
||||
}
|
||||
},
|
||||
isActive: function(id, callback) {
|
||||
|
||||
Reference in New Issue
Block a user