]> git.wh0rd.org Git - tt-rss.git/commitdiff
api: fix wrong sql syntax in getFeeds
authorAndrew Dolgov <fox@bah.org.ru>
Mon, 19 Apr 2010 05:50:43 +0000 (09:50 +0400)
committerAndrew Dolgov <fox@bah.org.ru>
Mon, 19 Apr 2010 05:50:43 +0000 (09:50 +0400)
api/index.php

index 3064549bc2a9c675e2b48087c21bed84710136ca..8e6400a008b0f3cc5ae020fb7e84c081be1c761a 100644 (file)
                                        id, feed_url, cat_id, title, ".
                                                SUBSTRING_FOR_DATE."(last_updated,1,19) AS last_updated
                                                FROM ttrss_feeds WHERE owner_uid = " . $_SESSION["uid"] . 
-                                               "ORDER BY cat_id, title " . $limit_qpart);
+                                               " ORDER BY cat_id, title " . $limit_qpart);
                        } else {
                                $result = db_query($link, "SELECT 
                                        id, feed_url, cat_id, title, ".
                                                SUBSTRING_FOR_DATE."(last_updated,1,19) AS last_updated
                                                FROM ttrss_feeds WHERE 
                                                cat_id = '$cat_id' AND owner_uid = " . $_SESSION["uid"] . 
-                                               "ORDER BY cat_id, title " . $limit_qpart);
+                                               " ORDER BY cat_id, title " . $limit_qpart);
                        }
 
                        $feeds = array();