isArray check

This commit is contained in:
barisusakli
2014-08-07 00:06:13 -04:00
parent 8e8b678d40
commit cb519d53a1

View File

@@ -124,7 +124,7 @@ var async = require('async'),
nextStart: 0
};
if (!tids || !tids.length) {
if (!Array.isArray(tids) || !tids.length) {
return callback(null, returnTopics);
}