diff --git a/src/posts.js b/src/posts.js index 53a11e9d6b..856145c4c0 100644 --- a/src/posts.js +++ b/src/posts.js @@ -357,7 +357,7 @@ var async = require('async'), } posts = posts.filter(function(post) { - return parseInt(results.topics[post.tid].deleted, 10) !== 1; + return results.topics[post.tid] && parseInt(results.topics[post.tid].deleted, 10) !== 1; }); async.map(posts, function(post, next) {