Skip to content

Commit

Permalink
Fixed compatibility with GLPI <= 9.4 (fix #7, fix #8)
Browse files Browse the repository at this point in the history
  • Loading branch information
edgardmessias committed Mar 17, 2021
1 parent 946a81a commit 904b642
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions inc/provider.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -1112,10 +1112,10 @@ public function login() {
}

public function linkUser($user_id) {
/** @var User */
$user = User::getById($user_id);
if (!$user) {
return;
$user = new User();

if (!$user->getFromDB($user_id)) {
return false;
}

$resource_array = $this->getResourceOwner();
Expand Down

0 comments on commit 904b642

Please sign in to comment.