18600cf5 by fehrlich

minor php74 fix

1 parent 0668b320
...@@ -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();
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!