Skip to content

Commit

Permalink
Changed the assignment order.
Browse files Browse the repository at this point in the history
  • Loading branch information
JuhQ committed Sep 28, 2011
1 parent 8882664 commit 3f85407
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/base_facebook.php
Original file line number Diff line number Diff line change
Expand Up @@ -314,7 +314,8 @@ public function getAccessToken() {
// access token, in case we navigate to the /oauth/access_token
// endpoint, where SOME access token is required.
$this->setAccessToken($this->getApplicationAccessToken());
if (($user_access_token = $this->getUserAccessToken()) !== false) {
$user_access_token = $this->getUserAccessToken();
if ($user_access_token) {
$this->setAccessToken($user_access_token);
}

Expand Down

0 comments on commit 3f85407

Please sign in to comment.