expire was initiated as true instead of false
This commit is contained in:
parent
0898a99314
commit
6dd17ead60
1 changed files with 1 additions and 1 deletions
|
|
@ -886,7 +886,7 @@ class CMailFile
|
|||
$storage = new DoliStorage($db, $conf);
|
||||
try {
|
||||
$tokenobj = $storage->retrieveAccessToken($OAUTH_SERVICENAME);
|
||||
$expire = true;
|
||||
$expire = false;
|
||||
// Is token expired or will token expire in the next 30 seconds
|
||||
if (is_object($tokenobj)) {
|
||||
$expire = ($tokenobj->getEndOfLife() !== -9002 && $tokenobj->getEndOfLife() !== -9001 && time() > ($tokenobj->getEndOfLife() - 30));
|
||||
|
|
|
|||
Loading…
Reference in a new issue