MDL-58489 core: Fix unreachable HTTP error handling

This commit is contained in:
Jan Dageförde
2017-04-07 10:07:54 +02:00
parent 90574fd1c8
commit d2decc7fb0
+1 -1
View File
@@ -504,7 +504,7 @@ abstract class oauth2_client extends curl {
$response = $this->post($this->token_url(), $params);
}
if (!$this->info['http_code'] === 200) {
if ($this->info['http_code'] !== 200) {
throw new moodle_exception('Could not upgrade oauth token');
}