Skip to content

Commit

Permalink
MDL-34440 Site registration failing with mysqli
Browse files Browse the repository at this point in the history
  • Loading branch information
woolardfa authored and danmarsden committed Jul 30, 2012
1 parent 55a568f commit 9f24709
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions course/lib.php
Original file line number Diff line number Diff line change
Expand Up @@ -4038,7 +4038,7 @@ function average_number_of_participants() {
WHERE ue.enrolid = e.id
AND e.courseid <> :siteid
AND c.id = e.courseid
AND c.visible = 1)';
AND c.visible = 1) total';
$params = array('siteid' => $SITE->id);
$enrolmenttotal = $DB->count_records_sql($sql, $params);

Expand Down Expand Up @@ -4071,7 +4071,7 @@ function average_number_of_courses_modules() {
WHERE c.id = cm.course
AND c.id <> :siteid
AND cm.visible = 1
AND c.visible = 1)';
AND c.visible = 1) total';
$params = array('siteid' => $SITE->id);
$moduletotal = $DB->count_records_sql($sql, $params);

Expand Down

0 comments on commit 9f24709

Please sign in to comment.