diff --git a/lib/classes/oauth2/client.php b/lib/classes/oauth2/client.php index 5f2b8c2870a..d5bc03d0ce8 100644 --- a/lib/classes/oauth2/client.php +++ b/lib/classes/oauth2/client.php @@ -188,7 +188,7 @@ class client extends \oauth2_client { $response = $this->post($this->token_url(), $this->build_post_data($params)); } - if (!$this->info['http_code'] === 200) { + if ($this->info['http_code'] !== 200) { throw new moodle_exception('Could not upgrade oauth token'); } diff --git a/lib/oauthlib.php b/lib/oauthlib.php index c684c9c911a..1fe80f52329 100644 --- a/lib/oauthlib.php +++ b/lib/oauthlib.php @@ -551,7 +551,7 @@ abstract class oauth2_client extends curl { $response = $this->post($this->token_url(), $this->build_post_data($params)); } - if (!$this->info['http_code'] === 200) { + if ($this->info['http_code'] !== 200) { throw new moodle_exception('Could not upgrade oauth token'); }