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