]> git.wh0rd.org - tt-rss.git/commitdiff
api: fix getFeeds returning some ids in string format
authorAndrew Dolgov <fox@madoka.volgo-balt.ru>
Fri, 24 Jan 2014 11:33:16 +0000 (15:33 +0400)
committerAndrew Dolgov <fox@madoka.volgo-balt.ru>
Fri, 24 Jan 2014 11:33:16 +0000 (15:33 +0400)
classes/api.php

index 0306eff94b0bc0fb487925eaea3b61b76665d6d6..a9216c58b222c404500cba1831fa5e0b0834e1cc 100644 (file)
@@ -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,