Node.js based forum software built for the modern web
always return array
Barış Soner Uşaklı4056283fd50a
diff --git a/src/topics.js b/src/topics.jsindex 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 : []);+ });};