Skip to content

Commit

Permalink
Merge pull request #473 from JuhQ/master
Browse files Browse the repository at this point in the history
Removed "Assignment in condition" notice
  • Loading branch information
ptarjan committed Oct 6, 2011
2 parents 4b0e000 + 3f85407 commit 668c61a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/base_facebook.php
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()) {
$user_access_token = $this->getUserAccessToken();
if ($user_access_token) {
$this->setAccessToken($user_access_token);
}

Expand Down

0 comments on commit 668c61a

Please sign in to comment.