minor php74 fix
Showing
1 changed file
with
4 additions
and
2 deletions
| ... | @@ -133,8 +133,10 @@ abstract class ImmoScoutAPI extends GuzzleClient | ... | @@ -133,8 +133,10 @@ 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 | $token = $tokenArray[0]; | 136 | if($tokenArray && is_array($tokenArray)){ |
| 137 | $token_secret = $tokenArray[1]; | 137 | $token = $tokenArray[0]; |
| 138 | $token_secret = $tokenArray[1]; | ||
| 139 | } | ||
| 138 | } | 140 | } |
| 139 | 141 | ||
| 140 | $stack = HandlerStack::create(); | 142 | $stack = HandlerStack::create(); | ... | ... |
-
Please register or sign in to post a comment