From: Andrew Dolgov Date: Fri, 24 Jan 2014 11:33:16 +0000 (+0400) Subject: api: fix getFeeds returning some ids in string format X-Git-Tag: 1.12~116 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=1d3cbe31c317397b90afa3bcbf79e394fa4667d8;p=tt-rss.git api: fix getFeeds returning some ids in string format --- diff --git a/classes/api.php b/classes/api.php index 0306eff9..a9216c58 100644 --- a/classes/api.php +++ b/classes/api.php @@ -516,7 +516,7 @@ class API extends Handler { if ($unread || !$unread_only) { $row = array( - "id" => $cv["id"], + "id" => (int) $cv["id"], "title" => $cv["description"], "unread" => $cv["counter"], "cat_id" => -2, @@ -562,7 +562,7 @@ class API extends Handler { if ($unread || !$unread_only) { $row = array( - "id" => $line["id"], + "id" => (int) $line["id"], "title" => $line["title"], "unread" => $unread, "is_cat" => true,