mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-06 14:05:46 +01:00
search in categories and children
This commit is contained in:
@@ -256,7 +256,14 @@
|
||||
value = options.skipToType[key] ? decodeURI(val[1]) : utils.toType(decodeURI(val[1]));
|
||||
|
||||
if (key) {
|
||||
hash[key] = value;
|
||||
if (!hash[key]) {
|
||||
hash[key] = value;
|
||||
} else {
|
||||
if (!$.isArray(hash[key])) {
|
||||
hash[key] = [hash[key]];
|
||||
}
|
||||
hash[key].push(value);
|
||||
}
|
||||
}
|
||||
});
|
||||
return hash;
|
||||
|
||||
Reference in New Issue
Block a user