Skip to content

Commit

Permalink
Fix misnamed $response variable
Browse files Browse the repository at this point in the history
  • Loading branch information
Jonathan Nicol committed Jan 24, 2018
1 parent 92e4e5c commit 4fff5ae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion TweetPHP.php
Expand Up @@ -152,7 +152,7 @@ private function fetch_tweets () {
$response = json_decode($this->tmhOAuth->response['response'], true);

// Some twitter endpoints (e.g. search/tweets) store tweets in a `statuses` array.
$data = array_key_exists('statuses', $response) ? $response['statuses'] : $responsedata;
$data = array_key_exists('statuses', $response) ? $response['statuses'] : $response;

$tweets_html = '';

Expand Down

0 comments on commit 4fff5ae

Please sign in to comment.