From: Andrew Dolgov Date: Wed, 5 Aug 2015 13:23:27 +0000 (+0300) Subject: don't bother with topmost id if working with disabled offsets X-Git-Tag: 16.3~186 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=c7edba791c69565afa89a5e2c6e90e82d525d509;p=tt-rss.git don't bother with topmost id if working with disabled offsets --- 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,