Skip to content

Commit

Permalink
Merge branch 'MDL-71329' of https://github.com/Chocolate-lightning/mo…
Browse files Browse the repository at this point in the history
  • Loading branch information
abgreeve committed Apr 27, 2021
2 parents 54191ad + 54b57cb commit a8c614b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions admin/tool/moodlenet/classes/profile_manager.php
Expand Up @@ -310,11 +310,10 @@ public static function get_moodlenet_profile_link(moodlenet_user_profile $moodle
'CURLOPT_HEADER' => 0,
];
$content = $curl->get($url, null, $options);
$errno = $curl->get_errno();
$info = $curl->get_info();

// The base cURL seems fine, let's press on.
if (!$errno) {
if (!$curl->get_errno() && !$curl->error) {
// WebFinger gave us a 404 back so the user has no droids here.
if ($info['http_code'] >= 400) {
if ($info['http_code'] === 404) {
Expand Down

0 comments on commit a8c614b

Please sign in to comment.