diff --git a/src/topics.js b/src/topics.js index 81bfccefc2..8dd5df0c13 100644 --- a/src/topics.js +++ b/src/topics.js @@ -329,5 +329,7 @@ Topics.search = function (tid, term, callback) { plugins.fireHook('filter:topic.search', { tid: tid, term: term, - }, callback); + }, function (err, pids) { + callback(err, Array.isArray(pids) ? pids : []); + }); };