From: Hank Grabowski Date: Fri, 17 Feb 2023 18:23:34 +0000 (-0500) Subject: Fix offset is absolute in set not a page to be consistent with SQL X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=df4af8da9bac95aba6839487d7dd851227fea30c;p=friendica.git Fix offset is absolute in set not a page to be consistent with SQL --- diff --git a/src/Model/Tag.php b/src/Model/Tag.php index 362df49ec7..0e891f9c6f 100644 --- a/src/Model/Tag.php +++ b/src/Model/Tag.php @@ -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); } /**