Home
Documentation
Downloads
Demo
Tracker
Development
Translation
Moodle.net
Search
projects
/
moodle.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5dae8c0
)
MDL-65910 report_stats: Add stattype query condition for consistency
author
Jun Pataleta
<jun@moodle.com>
Thu, 13 Jun 2019 10:20:21 +0000
(18:20 +0800)
committer
Jun Pataleta
<jun@moodle.com>
Fri, 14 Jun 2019 05:00:31 +0000
(13:00 +0800)
report/stats/user.php
patch
|
blob
|
blame
|
history
diff --git
a/report/stats/user.php
b/report/stats/user.php
index
ae71c4f
..
7309a08
100644
(file)
--- a/
report/stats/user.php
+++ b/
report/stats/user.php
@@
-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";