omusico / oauth-php

Automatically exported from code.google.com/p/oauth-php
MIT License
0 stars 0 forks source link

Undefined property: OAuthStore2Leg::$token_secret #115

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Do a two-legged auth

What is the expected output? What do you see instead?
PHP logs contain:

[14-Sep-2011 10:46:58] PHP Notice:  Undefined property: 
OAuthStore2Leg::$token_secret in 
/Applications/MAMP/htdocs/ydapi2/oauth-php/library/store/OAuthStore2Leg.php on 
line 70

What version of the product are you using? On what operating system?
r191, PHP 5.3.4, OSX 10.6

Please provide any additional information below.

Change lines 69 & 70 of OAuthSTore2Leg.php to:
            'token' => isset($this->token_type) ? $this->token_type : '',
            'token_secret' => isset($this->token_secret) ? $this->token_secret : '',

Original issue reported on code.google.com by csixty4 on 14 Sep 2011 at 3:52