From 9f2470937d69cf0ee912ab248141267576499211 Mon Sep 17 00:00:00 2001 From: Fred Woolard Date: Mon, 30 Jul 2012 20:04:55 +1200 Subject: [PATCH] MDL-34440 Site registration failing with mysqli --- course/lib.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/course/lib.php b/course/lib.php index c2bc4054a787d..44255766160c8 100644 --- a/course/lib.php +++ b/course/lib.php @@ -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); @@ -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);