Permalink
Browse files

Corrected check in authenticate()

  • Loading branch information...
1 parent 5b2546a commit c0f7edcfc1259ccf1a8bbb094dc480d9bb237e63 Ben Tadiar committed Jan 29, 2012
Showing with 2 additions and 1 deletion.
  1. +2 −1 Dropbox/OAuth/Consumer/ConsumerAbstract.php
@@ -9,6 +9,7 @@
*/
namespace Dropbox\OAuth\Consumer;
use \Dropbox\API as API;
+
abstract class ConsumerAbstract
{
// Dropbox web endpoint
@@ -33,7 +34,7 @@
protected function authenticate()
{
if((!$this->storage->get('access_token'))){
- if(!$this->storage->get('request_token')){
+ if(!isset($_GET['uid'], $_GET['oauth_token'])){
$this->getRequestToken();
$this->authorise();
} else {

0 comments on commit c0f7edc

Please sign in to comment.