18600cf5 by fehrlich

minor php74 fix

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