possible fix for #1410

This commit is contained in:
barisusakli
2014-04-20 01:31:17 -04:00
parent 1ed5145738
commit bca2755c3e

View File

@@ -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]]'));
}