@@ -219,13 +219,13 @@ |
||
| 219 | 219 | * Force Logout of SugarAPI Object |
| 220 | 220 | */ |
| 221 | 221 | public function logout(){ |
| 222 | - if (!empty($this->authToken)){ |
|
| 223 | - $response = $this->oauth2Logout()->execute()->getResponse(); |
|
| 224 | - if ($response->getStatus()=='200'){ |
|
| 225 | - unset($this->authToken); |
|
| 226 | - unset($this->authExpiration); |
|
| 227 | - } |
|
| 228 | - } |
|
| 222 | + if (!empty($this->authToken)){ |
|
| 223 | + $response = $this->oauth2Logout()->execute()->getResponse(); |
|
| 224 | + if ($response->getStatus()=='200'){ |
|
| 225 | + unset($this->authToken); |
|
| 226 | + unset($this->authExpiration); |
|
| 227 | + } |
|
| 228 | + } |
|
| 229 | 229 | } |
| 230 | 230 | |
| 231 | 231 | /** |