Commit 2e6c2a55 authored by 刘文胜's avatar 刘文胜

from 为空判断

parent 3c3a58eb
......@@ -794,7 +794,7 @@ function getSubThreads(doc, sort, callback) {
_.forEach(docs, function(one, i) {
var flag = true;
_.forEach(list, function(two, k) {
if(one.from._id == two.from._id){
if(one.from && two.from && one.from._id == two.from._id){
flag = false;
}
});
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment