Skip to content
This repository has been archived by the owner on Jun 27, 2018. It is now read-only.

Commit

Permalink
Correct User class instantiation
Browse files Browse the repository at this point in the history
Use fromResourceLink method to create user instance
  • Loading branch information
Stephen Vickers committed Aug 16, 2016
1 parent 40a128d commit 047dc7c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ToolProvider/ResourceLink.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
* @author Stephen P Vickers <[email protected]>
* @copyright IMS Global Learning Consortium Inc
* @date 2016
* @version 3.0.0
* @version 3.0.1
* @license http://www.apache.org/licenses/LICENSE-2.0 Apache License, Version 2.0
*/
class ResourceLink
Expand Down Expand Up @@ -703,7 +703,7 @@ public function doMembershipsService($withGroups = false)

for ($i = 0; $i < count($members); $i++) {

$user = new User($this, $members[$i]['user_id']);
$user = User::fromResourceLink($this, $members[$i]['user_id']);

// Set the user name
$firstname = (isset($members[$i]['person_name_given'])) ? $members[$i]['person_name_given'] : '';
Expand Down

0 comments on commit 047dc7c

Please sign in to comment.