Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
integration
prechecker
Commits
9f247093
Commit
9f247093
authored
Jul 30, 2012
by
Fred Woolard
Committed by
Dan Marsden
Jul 30, 2012
Browse files
MDL-34440 Site registration failing with mysqli
parent
55a568fa
Changes
1
Hide whitespace changes
Inline
Side-by-side
course/lib.php
View file @
9f247093
...
...
@@ -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
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment