minor php74 fix
Showing
1 changed file
with
2 additions
and
0 deletions
| ... | @@ -133,9 +133,11 @@ abstract class ImmoScoutAPI extends GuzzleClient | ... | @@ -133,9 +133,11 @@ abstract class ImmoScoutAPI extends GuzzleClient |
| 133 | $token_secret = ''; | 133 | $token_secret = ''; |
| 134 | if ($authorized) { | 134 | if ($authorized) { |
| 135 | $tokenArray = static::restoreAccessToken(); | 135 | $tokenArray = static::restoreAccessToken(); |
| 136 | if($tokenArray && is_array($tokenArray)){ | ||
| 136 | $token = $tokenArray[0]; | 137 | $token = $tokenArray[0]; |
| 137 | $token_secret = $tokenArray[1]; | 138 | $token_secret = $tokenArray[1]; |
| 138 | } | 139 | } |
| 140 | } | ||
| 139 | 141 | ||
| 140 | $stack = HandlerStack::create(); | 142 | $stack = HandlerStack::create(); |
| 141 | $oAuth = new Oauth1([ | 143 | $oAuth = new Oauth1([ | ... | ... |
-
Please register or sign in to post a comment