dont error when no teaser data

v1.18.x
barisusakli 11 years ago
parent 9157708b45
commit 24aa166ed5

@ -350,7 +350,7 @@ var async = require('async'),
if (err) {
return next(err);
} else if(!postData || !utils.isNumber(postData.uid)) {
return next(new Error('[[error:no-teaser]]'));
return callback();
}
user.getUserFields(postData.uid, ['username', 'userslug', 'picture'], function(err, userData) {

Loading…
Cancel
Save