hide category icons if they are not set

This commit is contained in:
barisusakli
2014-10-30 18:04:45 -04:00
parent adfb89a2ad
commit b12e3562d5
3 changed files with 32 additions and 18 deletions

View File

@@ -226,7 +226,6 @@ var async = require('async'),
for (var i=0; i<topics.length; ++i) {
if (topics[i]) {
topics[i].category = categories[topics[i].cid] || {};
topics[i].category.disabled = parseInt(topics[i].category.disabled, 10) === 1;
topics[i].user = users[topics[i].uid];
topics[i].teaser = results.teasers[i];
topics[i].tags = results.tags[i];