mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-13 22:15:56 +00:00
api: fix getFeeds returning some ids in string format
This commit is contained in:
@@ -516,7 +516,7 @@ class API extends Handler {
|
|||||||
if ($unread || !$unread_only) {
|
if ($unread || !$unread_only) {
|
||||||
|
|
||||||
$row = array(
|
$row = array(
|
||||||
"id" => $cv["id"],
|
"id" => (int) $cv["id"],
|
||||||
"title" => $cv["description"],
|
"title" => $cv["description"],
|
||||||
"unread" => $cv["counter"],
|
"unread" => $cv["counter"],
|
||||||
"cat_id" => -2,
|
"cat_id" => -2,
|
||||||
@@ -562,7 +562,7 @@ class API extends Handler {
|
|||||||
|
|
||||||
if ($unread || !$unread_only) {
|
if ($unread || !$unread_only) {
|
||||||
$row = array(
|
$row = array(
|
||||||
"id" => $line["id"],
|
"id" => (int) $line["id"],
|
||||||
"title" => $line["title"],
|
"title" => $line["title"],
|
||||||
"unread" => $unread,
|
"unread" => $unread,
|
||||||
"is_cat" => true,
|
"is_cat" => true,
|
||||||
|
|||||||
Reference in New Issue
Block a user