From c7edba791c69565afa89a5e2c6e90e82d525d509 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Wed, 5 Aug 2015 16:23:27 +0300 Subject: [PATCH] don't bother with topmost id if working with disabled offsets --- include/functions2.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/functions2.php b/include/functions2.php index 996e99f4..418dbc95 100644 --- a/include/functions2.php +++ b/include/functions2.php @@ -726,7 +726,7 @@ $sanity_interval_qpart = "date_entered >= DATE_SUB(NOW(), INTERVAL 1 hour) AND"; } - if (!$search) { + if (!$search && !$disable_offsets) { // if previous topmost article id changed that means our current pagination is no longer valid $query = "SELECT DISTINCT ttrss_feeds.title, -- 2.39.5