Node.js based forum software built for the modern web
small tweak
barisusakli8e8b678d401a
diff --git a/src/topics.js b/src/topics.jsindex 03071beb32..c32f14bcb6 100644--- a/src/topics.js+++ b/src/topics.js@@ -26,11 +26,7 @@ var async = require('async'),Topics.getTopicData = function(tid, callback) {Topics.getTopicsData([tid], function(err, topics) {- if (err) {- return callback(err);- }-- callback(null, topics ? topics[0] : null);+ callback(err, Array.isArray(topics) && topics.length ? topics[0] : null);});};