isArray check

v1.18.x
barisusakli 11 years ago
parent 8e8b678d40
commit cb519d53a1

@ -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);
} }

Loading…
Cancel
Save