api: fix wrong sql syntax in getFeeds

This commit is contained in:
Andrew Dolgov 2010-04-19 09:50:43 +04:00
parent 4c93bf06b6
commit de1b5f9e5d
1 changed files with 2 additions and 2 deletions

View File

@ -111,14 +111,14 @@
id, feed_url, cat_id, title, ". id, feed_url, cat_id, title, ".
SUBSTRING_FOR_DATE."(last_updated,1,19) AS last_updated SUBSTRING_FOR_DATE."(last_updated,1,19) AS last_updated
FROM ttrss_feeds WHERE owner_uid = " . $_SESSION["uid"] . FROM ttrss_feeds WHERE owner_uid = " . $_SESSION["uid"] .
"ORDER BY cat_id, title " . $limit_qpart); " ORDER BY cat_id, title " . $limit_qpart);
} else { } else {
$result = db_query($link, "SELECT $result = db_query($link, "SELECT
id, feed_url, cat_id, title, ". id, feed_url, cat_id, title, ".
SUBSTRING_FOR_DATE."(last_updated,1,19) AS last_updated SUBSTRING_FOR_DATE."(last_updated,1,19) AS last_updated
FROM ttrss_feeds WHERE FROM ttrss_feeds WHERE
cat_id = '$cat_id' AND owner_uid = " . $_SESSION["uid"] . 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(); $feeds = array();