don't bother with topmost id if working with disabled offsets

This commit is contained in:
Andrew Dolgov 2015-08-05 16:23:27 +03:00
parent 0bd172cd6a
commit c7edba791c

View file

@ -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,