Skip to content
Snippets Groups Projects
Commit de1b5f9e authored by Andrew Dolgov's avatar Andrew Dolgov
Browse files

api: fix wrong sql syntax in getFeeds

parent 4c93bf06
No related branches found
No related tags found
No related merge requests found
......@@ -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();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment