18600cf5 by fehrlich

minor php74 fix

1 parent 0668b320
......@@ -133,8 +133,10 @@ abstract class ImmoScoutAPI extends GuzzleClient
$token_secret = '';
if ($authorized) {
$tokenArray = static::restoreAccessToken();
$token = $tokenArray[0];
$token_secret = $tokenArray[1];
if($tokenArray && is_array($tokenArray)){
$token = $tokenArray[0];
$token_secret = $tokenArray[1];
}
}
$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!