Skip to content

Commit

Permalink
Merge branch 'wip-79222-m39' into MOODLE_39_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 9ebeef0 + dc90328 commit e2109b7
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 e2109b7

Please sign in to comment.