]> git.wh0rd.org Git - tt-rss.git/commitdiff
don't bother with topmost id if working with disabled offsets
authorAndrew Dolgov <noreply@madoka.volgo-balt.ru>
Wed, 5 Aug 2015 13:23:27 +0000 (16:23 +0300)
committerAndrew Dolgov <noreply@madoka.volgo-balt.ru>
Wed, 5 Aug 2015 13:23:27 +0000 (16:23 +0300)
include/functions2.php

index 996e99f422f04c87fe2aaad38e9e58f829b69875..418dbc95b51272a2dfbf69368e13524242a0a5ee 100644 (file)
                                        $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,