]> git.wh0rd.org Git - tt-rss.git/commitdiff
rework viewfeed query a little bit
authorAndrew Dolgov <fox@bah.spb.su>
Fri, 9 Sep 2005 02:53:39 +0000 (03:53 +0100)
committerAndrew Dolgov <fox@bah.spb.su>
Fri, 9 Sep 2005 02:53:39 +0000 (03:53 +0100)
backend.php

index 9993d88a98d5a487b016b7e402b37b7ea91b670d..3442b862e1816c658835a68853eda724653a189b 100644 (file)
                        $query_strategy_part = "id > 0"; // dumb
                }
 
+               $order_by = "updated DESC";
+
+//             if ($feed < -10) {
+//                     $order_by = "feed_id,updated DESC";
+//             }
+
                if ($feed < -10) error_reporting (0);
 
                $result = db_query($link, "SELECT 
                        WHERE
                        $search_query_part
                        $view_query_part
-                       $query_strategy_part ORDER BY updated DESC 
+                       $query_strategy_part ORDER BY $order_by
                        $limit_query_part");
 
                if (!$result) {