From cb519d53a1841686bf51eb24af4712a80983cbaa Mon Sep 17 00:00:00 2001 From: barisusakli Date: Thu, 7 Aug 2014 00:06:13 -0400 Subject: [PATCH] isArray check --- src/topics.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); }