Skip to content

Node.js based forum software built for the modern web

possible fix for #1410

barisusaklibca2755c3e3b
diff --git a/src/topics.js b/src/topics.js
index e4accc9250..3326cfaef9 100644
--- a/src/topics.js
+++ b/src/topics.js
@@ -328,7 +328,7 @@ var async = require('async'),
posts.getPostFields(pid, ['pid', 'uid', 'timestamp'], function(err, postData) {
if (err) {
return callback(err);
- } else if(!postData || !postData.uid) {
+ } else if(!postData || !utils.isNumber(postData.uid)) {
return callback(new Error('[[error:no-teaser]]'));
}