Skip to content

Commit

Permalink
Merge branch 'wip-79222-m311' into MOODLE_311_STABLE
Browse files Browse the repository at this point in the history
# Conflicts:
#	local/o365/classes/feature/usersync/main.php
  • Loading branch information
weilai-irl committed Oct 21, 2021
2 parents 5075c44 + 73e662d commit cd437d3
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions classes/feature/usersync/main.php
Original file line number Diff line number Diff line change
Expand Up @@ -910,11 +910,9 @@ public function sync_users(array $aadusers = array()) {
return true;
}

$select = 'SELECT LOWER(u.username) AS username,';
if (isset($aadsync['emailsync'])) {
$select = 'SELECT LOWER(u.email) AS email,
LOWER(u.username) AS username,';
} else {
$select = 'SELECT LOWER(u.username) AS username,';
$select .= ' LOWER(u.email) AS email,';
}

$sql = "$select
Expand Down

0 comments on commit cd437d3

Please sign in to comment.