]> git.wh0rd.org Git - tt-rss.git/commitdiff
remove unneeded total counter subquery from feedlist query
authorAndrew Dolgov <fox@madoka.spb.ru>
Sat, 30 Sep 2006 05:58:18 +0000 (06:58 +0100)
committerAndrew Dolgov <fox@madoka.spb.ru>
Sat, 30 Sep 2006 05:58:18 +0000 (06:58 +0100)
backend.php

index 34ec1bcf2ebbbefd70f62f878390f47aabb73d49..6e3fdcecea7cf4a4380ca45e55a5054bc0c75129 100644 (file)
 
                        $result = db_query($link, "SELECT ttrss_feeds.*,
                                SUBSTRING(last_updated,1,19) AS last_updated_noms,
-                               (SELECT COUNT(id) FROM ttrss_entries,ttrss_user_entries
-                                       WHERE feed_id = ttrss_feeds.id AND 
-                                       ttrss_user_entries.ref_id = ttrss_entries.id AND
-                                       owner_uid = '$owner_uid') AS total,
                                (SELECT COUNT(id) FROM ttrss_entries,ttrss_user_entries
                                        WHERE feed_id = ttrss_feeds.id AND unread = true
                                                AND ttrss_user_entries.ref_id = ttrss_entries.id
        
                                $subop = $_GET["subop"];
                                
-                               $total = $line["total"];
                                $unread = $line["unread"];
 
                                if (get_pref($link, 'HEADLINES_SMART_DATE')) {