Skip to content

Node.js based forum software built for the modern web

error check

Baris Soner Usaklie6a9f5a70458
diff --git a/src/routes/api.js b/src/routes/api.js
index 90f7222c6c..9beb247c09 100644
--- a/src/routes/api.js
+++ b/src/routes/api.js
@@ -295,6 +295,9 @@ var path = require('path'),
}
topics.getTopicsByTids(tids, 0, 0, function (err, topics) {
+ if (err){
+ return callback(err, null);
+ }
callback(null, topics);
});
});