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
1 changed files with 1 additions and 1 deletions

View File

@ -726,7 +726,7 @@
$sanity_interval_qpart = "date_entered >= DATE_SUB(NOW(), INTERVAL 1 hour) AND"; $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 // if previous topmost article id changed that means our current pagination is no longer valid
$query = "SELECT DISTINCT $query = "SELECT DISTINCT
ttrss_feeds.title, ttrss_feeds.title,