api: fix getFeeds returning some ids in string format
This commit is contained in:
parent
5b319e8be2
commit
1d3cbe31c3
|
@ -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,
|
||||||
|
|
Loading…
Reference in New Issue