Skip to content

Node.js based forum software built for the modern web

fixed bug with search (getTopicsByTids became error-first)

Julian Lam962955f06a1d
diff --git a/src/routes/api.js b/src/routes/api.js
index 700949d6e5..90f7222c6c 100644
--- a/src/routes/api.js
+++ b/src/routes/api.js
@@ -294,7 +294,7 @@ var path = require('path'),
return callback(err, null);
}
- topics.getTopicsByTids(tids, 0, 0, function (topics) {
+ topics.getTopicsByTids(tids, 0, 0, function (err, topics) {
callback(null, topics);
});
});