Adjusted query so that it works in MySQL
This commit is contained in:
parent
b3a767d151
commit
69bc06bbee
1 changed files with 1 additions and 1 deletions
2
lib.php
2
lib.php
|
@ -692,7 +692,7 @@ function customcert_get_number_of_issues($customcertid, $cm, $groupmode) {
|
|||
$allparams = $conditionsparams + array('customcertid' => $customcertid);
|
||||
|
||||
// Return the number of issues.
|
||||
return $DB->count_records_sql("SELECT COUNT(u.*) as count
|
||||
return $DB->count_records_sql("SELECT COUNT(u.id) as count
|
||||
FROM {user} u
|
||||
INNER JOIN {customcert_issues} ci
|
||||
ON u.id = ci.userid
|
||||
|
|
Loading…
Reference in a new issue