Merge branch 'MDL-80232-403' of https://github.com/paulholden/moodle into MOODLE_403_STABLE

This commit is contained in:
Jun Pataleta
2024-01-22 15:04:43 +08:00
@@ -736,7 +736,7 @@ class summary_table extends table_sql {
$orderby = " ORDER BY {$sort}";
}
} else {
$selectfields = 'COUNT(u.id)';
$selectfields = 'COUNT(DISTINCT u.id)';
}
$sql = "SELECT {$selectfields}