Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/roundcube/roundcubemail.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Bruederli <thomas@roundcube.net>2022-10-29 23:28:38 +0300
committerThomas Bruederli <thomas@roundcube.net>2022-10-29 23:28:38 +0300
commit10f00d394640df5c2806270e472be8c95a4c8fdf (patch)
treebf151ccf1f31cd3852dafbde80fc8d00763567e9
parentd3a1bcb6de400bd938d9df9b157137d6e34c4d1d (diff)
Remove debug code again
-rw-r--r--program/include/rcmail_oauth.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/program/include/rcmail_oauth.php b/program/include/rcmail_oauth.php
index 618438388..84e7402c1 100644
--- a/program/include/rcmail_oauth.php
+++ b/program/include/rcmail_oauth.php
@@ -456,7 +456,7 @@ class rcmail_oauth
*/
protected function check_token_validity($token)
{
- if (1 || $token['expires'] < time() && isset($token['refresh_token']) && empty($this->last_error)) {
+ if ($token['expires'] < time() && isset($token['refresh_token']) && empty($this->last_error)) {
return $this->refresh_access_token($token) !== false;
}
return false;