mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-07-06 23:59:46 +02:00
fix: closes #11343, don't crash if tags array is empty
This commit is contained in:
@@ -26,7 +26,7 @@ module.exports = function (module) {
|
||||
|
||||
async function getSortedSetUnion(params) {
|
||||
if (!Array.isArray(params.sets) || !params.sets.length) {
|
||||
return;
|
||||
return [];
|
||||
}
|
||||
let limit = params.stop - params.start + 1;
|
||||
if (limit <= 0) {
|
||||
|
||||
Reference in New Issue
Block a user