diff options
author | Robert Pösel <robyer@seznam.cz> | 2013-07-25 20:38:54 +0000 |
---|---|---|
committer | Robert Pösel <robyer@seznam.cz> | 2013-07-25 20:38:54 +0000 |
commit | baddf6d35811670beba5b25e8d7b2c33b2337756 (patch) | |
tree | 7439025318bf70ecae718f76d9ff9f034abb638d /protocols | |
parent | 9d32b9cd791fb5f51dad17567152c70a8511a500 (diff) |
Facebook: Fixed receiving notifications
git-svn-id: http://svn.miranda-ng.org/main/trunk@5486 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols')
-rw-r--r-- | protocols/FacebookRM/src/json.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/protocols/FacebookRM/src/json.cpp b/protocols/FacebookRM/src/json.cpp index 2cdec7824a..f6c801065d 100644 --- a/protocols/FacebookRM/src/json.cpp +++ b/protocols/FacebookRM/src/json.cpp @@ -461,8 +461,8 @@ int facebook_json_parser::parse_messages(void* data, std::vector< facebook_messa continue;
JSONNODE *nodes = json_get(it, "nodes");
- for (unsigned int i = 0; i < json_size(nodes); i++) {
- JSONNODE *itNodes = json_at(nodes, i);
+ for (unsigned int j = 0; j < json_size(nodes); j++) {
+ JSONNODE *itNodes = json_at(nodes, j);
//JSONNODE *text = json_get(itNodes, "title/text");
JSONNODE *text_ = json_get(itNodes, "unaggregatedTitle");
@@ -472,7 +472,7 @@ int facebook_json_parser::parse_messages(void* data, std::vector< facebook_messa JSONNODE *url = json_get(itNodes, "url");
JSONNODE *alert_id = json_get(itNodes, "alert_id");
- JSONNODE *time_ = json_get(it, "timestamp");
+ JSONNODE *time_ = json_get(itNodes, "timestamp");
if (time_ == NULL)
continue;
JSONNODE *time = json_get(time_, "time");
|