This commit is contained in:
barisusakli
2014-11-14 11:32:56 -05:00
parent 61863a69fe
commit 05a4737e84
2 changed files with 2 additions and 1 deletions

View File

@@ -168,6 +168,7 @@ var async = require('async'),
category.name = validator.escape(category.name);
category.disabled = parseInt(category.disabled, 10) === 1;
category.icon = category.icon || 'hidden';
category.post_count = category.post_count || 0;
if (category.description) {
category.description = validator.escape(category.description);