mirror of
https://github.com/moodle/moodle.git
synced 2025-04-14 13:02:07 +02:00
Merge branch 'MDL-82584-main-fix' of https://github.com/HuongNV13/moodle
This commit is contained in:
commit
b234e013bb
@ -3385,9 +3385,10 @@ class workshop {
|
||||
|
||||
// This is from enrollib.php:get_enrolled_join(). It says it's better for caching to use round.
|
||||
$now = round(time(), -2);
|
||||
$userfieldsapi = \core_user\fields::for_name()->with_userpic();
|
||||
|
||||
$sqlarray = [];
|
||||
$sqlarray['select'] = "SELECT DISTINCT u.*";
|
||||
$sqlarray['select'] = "SELECT DISTINCT u.id" . $userfieldsapi->get_sql('u')->selects;
|
||||
$sqlarray['from'] = "FROM {user} u";
|
||||
$sqlarray['join'] = [];
|
||||
$sqlarray['join'][] = "JOIN {user_enrolments} ue ON ue.userid = u.id";
|
||||
|
Loading…
x
Reference in New Issue
Block a user