Skip to content

Commit

Permalink
Merge pull request #32 from dirkgroenen/scrutinizer-patch-5
Browse files Browse the repository at this point in the history
Scrutinizer Auto-Fixes
  • Loading branch information
dirkgroenen committed Feb 2, 2016
2 parents a02aa71 + 0c8efdb commit 5ef0c4d
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions demo/boot.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,9 @@
$pinterest->auth->setOAuthToken($token->access_token);

setcookie("access_token", $token->access_token);
}
else if (isset($_GET["access_token"])) {
} else if (isset($_GET["access_token"])) {
$pinterest->auth->setOAuthToken($_GET["access_token"]);
}
else if (isset($_COOKIE["access_token"])) {
} else if (isset($_COOKIE["access_token"])) {
$pinterest->auth->setOAuthToken($_COOKIE["access_token"]);
}

Expand Down

0 comments on commit 5ef0c4d

Please sign in to comment.