From 1d3cbe31c317397b90afa3bcbf79e394fa4667d8 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Fri, 24 Jan 2014 15:33:16 +0400 Subject: [PATCH] api: fix getFeeds returning some ids in string format --- classes/api.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/classes/api.php b/classes/api.php index 0306eff94..a9216c58b 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,