Skip to content

Commit

Permalink
Issue #103: Fix oauth error message on login
Browse files Browse the repository at this point in the history
  • Loading branch information
gthomas2 committed Apr 16, 2018
1 parent 378f29f commit 892421e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion classes/renderables/login_alternative_methods.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,11 @@ public function __construct() {

if (!empty($potentialidps)) {
foreach ($potentialidps as $idp) {
$icon = is_object($idp['icon']) ? $OUTPUT->image_url($idp['icon']->pix) : '';
$this->potentialidps[] = (object) [
'url' => $idp['url']->out(),
'name' => $idp['name'],
'icon' => $OUTPUT->image_url($idp['icon']->pix)
'icon' => $icon
];
}
}
Expand Down

0 comments on commit 892421e

Please sign in to comment.