Fix offset is absolute in set not a page to be consistent with SQL
This commit is contained in:
parent
e6c93d31c1
commit
df4af8da9b
1 changed files with 2 additions and 2 deletions
|
@ -652,7 +652,7 @@ class Tag
|
|||
if (empty($tags)) {
|
||||
$tags = self::setGlobalTrendingHashtags($period, 1000);
|
||||
}
|
||||
return array_slice($tags, $limit * $offset, $limit);
|
||||
return array_slice($tags, $offset, $limit);
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -735,7 +735,7 @@ class Tag
|
|||
if (empty($tags)) {
|
||||
$tags = self::setLocalTrendingHashtags($period, 1000);
|
||||
}
|
||||
return array_slice($tags, $limit * $offset, $limit);
|
||||
return array_slice($tags, $offset, $limit);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue