Skip to content

Commit

Permalink
Twitter plugin: Avoid illegal offset type error during crawl
Browse files Browse the repository at this point in the history
  • Loading branch information
ginatrapani committed Sep 11, 2012
1 parent 989190e commit 37a061b
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -338,7 +338,7 @@ public function parseXML($data) {
'post_count' => (integer)$item->statuses_count,
'network' =>'twitter'
);
$current_index = current($parsed_payload);
$current_index = (count($parsed_payload))-1;

//If a user hasn't posted, there are no statuses
if ( isset($item->status->created_at) ) {
Expand Down Expand Up @@ -374,7 +374,7 @@ public function parseXML($data) {
'post_count' => (integer)$item->statuses_count,
'network' => 'twitter'
);
$current_index = current($parsed_payload);
$current_index = (count($parsed_payload))-1;
//If a user hasn't posted, there are no statuses
if ( isset($item->status->created_at) ) {
$parsed_payload[$current_index]['last_post'] = gmdate("Y-m-d H:i:s",
Expand Down

0 comments on commit 37a061b

Please sign in to comment.