summaryrefslogtreecommitdiff
path: root/api
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2010-04-19 09:50:43 +0400
committerAndrew Dolgov <[email protected]>2010-04-19 09:50:43 +0400
commitde1b5f9e5d39ee3ebb0aac99899621f9b8666dbc (patch)
tree10fc961496b1e92a38c616c51898bb7d5604c9b5 /api
parent4c93bf06b690dc8a2dd1d8d73b330ee6de7a7043 (diff)
api: fix wrong sql syntax in getFeeds
Diffstat (limited to 'api')
-rw-r--r--api/index.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/api/index.php b/api/index.php
index 3064549bc..8e6400a00 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();