Home
Documentation
Downloads
Demo
Tracker
Development
Translation
Moodle.net
Search
projects
/
moodle.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
MDL-58489 core: Fix unreachable HTTP error handling
[moodle.git]
/
lib
/
classes
/
oauth2
/
client.php
diff --git
a/lib/classes/oauth2/client.php
b/lib/classes/oauth2/client.php
index
5f2b8c2
..
d5bc03d
100644
(file)
--- 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');
}