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
08765665
Commit
08765665
authored
Jul 31, 2012
by
Dan Poltawski
Browse files
Merge branch 'master_MDL-34440' of
git://github.com/danmarsden/moodle
parents
93e1ff24
9f247093
Changes
1
Hide whitespace changes
Inline
Side-by-side
course/lib.php
View file @
08765665
...
...
@@ -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