cid isnt always present

This commit is contained in:
barisusakli
2014-11-14 22:07:19 -05:00
parent 36ac6f849f
commit 30d7f3351b

View File

@@ -164,7 +164,7 @@ var async = require('async'),
};
function modifyCategory(category, callback) {
if (!category || !parseInt(category.cid, 10)) {
if (!category) {
return callback(null, null);
}