mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 08:56:36 +02:00
MDL-65910 report_stats: Add stattype query condition for consistency
This commit is contained in:
parent
5dae8c0515
commit
fc97181924
1 changed files with 2 additions and 0 deletions
|
@ -130,9 +130,11 @@ $param->table = 'user_'.$param->table;
|
|||
$wheres = [
|
||||
"userid = :userid",
|
||||
"timeend >= :timeend",
|
||||
"stattype = :stattype",
|
||||
];
|
||||
$params['userid'] = $user->id;
|
||||
$params['timeend'] = $param->timeafter;
|
||||
$params['stattype'] = $param->stattype;
|
||||
// Add condition for course ID when specified.
|
||||
if ($course->id != SITEID) {
|
||||
$wheres[] = "courseid = :courseid";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue