Skip to content

Node.js based forum software built for the modern web

isArray check

barisusaklicb519d53a184
diff --git a/src/topics.js b/src/topics.js
index c32f14bcb6..86faf28bf1 100644
--- a/src/topics.js
+++ b/src/topics.js
@@ -124,7 +124,7 @@ var async = require('async'),
nextStart: 0
};
- if (!tids || !tids.length) {
+ if (!Array.isArray(tids) || !tids.length) {
return callback(null, returnTopics);
}