|
|
@ -366,7 +366,7 @@ var db = require('./database'),
|
|
|
|
if (categories[i]) {
|
|
|
|
if (categories[i]) {
|
|
|
|
categories[i]['unread-class'] = (parseInt(categories[i].topic_count, 10) === 0 || (hasRead[i] && uid !== 0)) ? '' : 'unread';
|
|
|
|
categories[i]['unread-class'] = (parseInt(categories[i].topic_count, 10) === 0 || (hasRead[i] && uid !== 0)) ? '' : 'unread';
|
|
|
|
categories[i].children = results.children[i];
|
|
|
|
categories[i].children = results.children[i];
|
|
|
|
categories[i].parent = results.parents[i];
|
|
|
|
categories[i].parent = results.parents[i] && !results.parents[i].disabled ? results.parents[i] : null;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|