api/getCategories: add TODO

This commit is contained in:
Andrew Dolgov 2011-11-28 19:41:04 +04:00
parent 97a3b9f012
commit e9ed9ec844

View file

@ -172,6 +172,8 @@
case "getCategories": case "getCategories":
$unread_only = (bool)db_escape_string($_REQUEST["unread_only"]); $unread_only = (bool)db_escape_string($_REQUEST["unread_only"]);
// TODO do not return empty categories, return Uncategorized and standard virtual cats
$result = db_query($link, "SELECT $result = db_query($link, "SELECT
id, title FROM ttrss_feed_categories id, title FROM ttrss_feed_categories
WHERE owner_uid = " . WHERE owner_uid = " .