mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-07 14:35:47 +01:00
isArray check
This commit is contained in:
@@ -124,7 +124,7 @@ var async = require('async'),
|
||||
nextStart: 0
|
||||
};
|
||||
|
||||
if (!tids || !tids.length) {
|
||||
if (!Array.isArray(tids) || !tids.length) {
|
||||
return callback(null, returnTopics);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user