From: Andrew Dolgov Date: Mon, 19 Apr 2010 05:50:43 +0000 (+0400) Subject: api: fix wrong sql syntax in getFeeds X-Git-Tag: 1.4.2~6 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=de1b5f9e5d39ee3ebb0aac99899621f9b8666dbc;p=tt-rss.git api: fix wrong sql syntax in getFeeds --- diff --git a/api/index.php b/api/index.php index 3064549b..8e6400a0 100644 --- a/api/index.php +++ b/api/index.php @@ -111,14 +111,14 @@ 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();