mirror of
https://github.com/moodle/moodle.git
synced 2025-04-21 00:12:56 +02:00
Merge branch 'wip-MDL-47052-master' of git://github.com/marinaglancy/moodle
This commit is contained in:
commit
5474b8bfbb
@ -208,6 +208,7 @@ if (!empty($instanceid) && !empty($roleid)) {
|
||||
|
||||
list($twhere, $tparams) = $table->get_sql_where();
|
||||
if ($twhere) {
|
||||
$params = array_merge($params, $tparams);
|
||||
$matchcount = $DB->count_records_sql($countsql.' AND '.$twhere, $params);
|
||||
} else {
|
||||
$matchcount = $totalcount;
|
||||
@ -252,7 +253,6 @@ if (!empty($instanceid) && !empty($roleid)) {
|
||||
" GROUP BY userid) l ON (l.userid = ra.userid)";
|
||||
if ($twhere) {
|
||||
$sql .= ' WHERE '.$twhere; // Initial bar.
|
||||
$params = array_merge($params, $tparams);
|
||||
}
|
||||
|
||||
if ($table->get_sql_sort()) {
|
||||
@ -285,7 +285,6 @@ if (!empty($instanceid) && !empty($roleid)) {
|
||||
|
||||
if ($twhere) {
|
||||
$sql .= ' WHERE '.$twhere; // Initial bar.
|
||||
$params = array_merge($params, $tparams);
|
||||
}
|
||||
|
||||
if ($table->get_sql_sort()) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user