This commit is contained in:
barisusakli
2016-02-08 12:21:23 +02:00
parent d4ce9c4f80
commit 4b3f09deea
3 changed files with 8 additions and 8 deletions

View File

@@ -42,7 +42,7 @@ module.exports = function(Categories) {
return;
}
category.name = validator.escape(category.name);
category.name = validator.escape(category.name || '');
category.disabled = category.hasOwnProperty('disabled') ? parseInt(category.disabled, 10) === 1 : undefined;
category.icon = category.icon || 'hidden';
if (category.hasOwnProperty('post_count')) {