Skip to content

Commit

Permalink
Merge branch 'MDL-74871' of https://github.com/paulholden/moodle
Browse files Browse the repository at this point in the history
  • Loading branch information
junpataleta committed Jun 15, 2022
2 parents c3d4845 + 9394d56 commit c6d752b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions user/action_redir.php
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@

// Retrieve all identity fields required for users.
$userfieldsapi = \core_user\fields::for_identity($context);
$userfields = $userfieldsapi->get_sql('u', true, '', '', false);
$userfields = $userfieldsapi->get_sql('u', true);

$identityfields = array_keys($userfields->mappings);
foreach ($identityfields as $field) {
Expand Down Expand Up @@ -141,7 +141,7 @@
$groupconcatjoin = '';
}

$sql = "SELECT u.firstname, u.lastname, {$userfields->selects}
$sql = "SELECT u.firstname, u.lastname {$userfields->selects}
FROM {user} u
{$userfields->joins}
JOIN ({$enrolledsql}) je ON je.id = u.id
Expand Down

0 comments on commit c6d752b

Please sign in to comment.