Skip to content

Commit

Permalink
Fixed undefined $AccessToken bug in the twitter plugin.
Browse files Browse the repository at this point in the history
  • Loading branch information
tburry committed Nov 7, 2011
1 parent c6fbc33 commit c662ced
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion plugins/Twitter/class.twitter.plugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -204,9 +204,10 @@ public function Base_ConnectData_Handler($Sender, $Args) {
return;

$RequestToken = GetValue('oauth_token', $_GET);
$AccessToken = $this->AccessToken();

// Get the access token.
if ($RequestToken || !($AccessToken = $this->AccessToken())) {
if ($RequestToken || !$AccessToken) {
// Get the request secret.
$RequestToken = $this->GetOAuthToken($RequestToken);

Expand Down

0 comments on commit c662ced

Please sign in to comment.