From f1b3b3f3308b187e067ccac7daeb2258751d10ce Mon Sep 17 00:00:00 2001 From: John Brayton Date: Sat, 27 Aug 2016 10:29:25 -0400 Subject: [PATCH 1/2] Add feed_id to subscribeToFeed response when the code is 1 or 0. Set the API_LEVEL to 14. --- classes/api.php | 2 +- include/functions.php | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/classes/api.php b/classes/api.php index 35c5d5f38..da164aca1 100644 --- a/classes/api.php +++ b/classes/api.php @@ -2,7 +2,7 @@ class API extends Handler { - const API_LEVEL = 13; + const API_LEVEL = 14; const STATUS_OK = 0; const STATUS_ERR = 1; diff --git a/include/functions.php b/include/functions.php index 3902ac45a..68f6f592b 100755 --- a/include/functions.php +++ b/include/functions.php @@ -1772,9 +1772,9 @@ set_basic_feed_info($feed_id); } - return array("code" => 1); + return array("code" => 1, "feed_id" => $feed_id); } else { - return array("code" => 0); + return array("code" => 0, "feed_id" => db_fetch_result($result, 0, "id")); } } From 401eb0f69497030d322487bf9c595ad60b9281d3 Mon Sep 17 00:00:00 2001 From: John Brayton Date: Sun, 28 Aug 2016 20:08:37 -0400 Subject: [PATCH 2/2] Specify feed_id as an int rather than a string. --- include/functions.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/functions.php b/include/functions.php index 68f6f592b..3dea5677a 100755 --- a/include/functions.php +++ b/include/functions.php @@ -1772,9 +1772,9 @@ set_basic_feed_info($feed_id); } - return array("code" => 1, "feed_id" => $feed_id); + return array("code" => 1, "feed_id" => (int) $feed_id); } else { - return array("code" => 0, "feed_id" => db_fetch_result($result, 0, "id")); + return array("code" => 0, "feed_id" => (int) db_fetch_result($result, 0, "id")); } }