mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-02 12:05:57 +01:00
cid isnt always present
This commit is contained in:
@@ -164,7 +164,7 @@ var async = require('async'),
|
||||
};
|
||||
|
||||
function modifyCategory(category, callback) {
|
||||
if (!category || !parseInt(category.cid, 10)) {
|
||||
if (!category) {
|
||||
return callback(null, null);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user