Permalink
Browse files

MDL-34440 Site registration failing with mysqli

  • Loading branch information...
woolardfa authored and danmarsden committed Jul 30, 2012
1 parent 6975216 commit 7ae8f60489502754dd59f25959e7a437d45507c4
Showing with 2 additions and 2 deletions.
  1. +2 −2 course/lib.php
View
@@ -4039,7 +4039,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);
@@ -4072,7 +4072,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);

0 comments on commit 7ae8f60

Please sign in to comment.