mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-03 04:25:55 +01:00
fix crash when you go to /topics/nonexistant
This commit is contained in:
@@ -20,6 +20,12 @@ var RDB = require('./redis.js'),
|
||||
var range_var = (category_id) ? 'categories:' + category_id + ':tid' : 'topics:tid';
|
||||
|
||||
RDB.smembers(range_var, function(err, tids) {
|
||||
|
||||
if(tids.length === 0) {
|
||||
callback(false);
|
||||
return;
|
||||
}
|
||||
|
||||
var title = [],
|
||||
uid = [],
|
||||
timestamp = [],
|
||||
|
||||
Reference in New Issue
Block a user