Browse files

Merge branch 'MDL-30514_22' of git://github.com/stronk7/moodle into M…

…OODLE_22_STABLE
  • Loading branch information...
2 parents f3493f8 + 7b18f18 commit e412ca95b491224da66d7d0eab2b565c78cbe0fe @danpoltawski danpoltawski committed Oct 2, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 course/lib.php
View
4 course/lib.php
@@ -3945,7 +3945,7 @@ function average_number_of_participants() {
WHERE ue.enrolid = e.id
AND e.courseid <> :siteid
AND c.id = e.courseid
- AND c.visible = 1) as total';
+ AND c.visible = 1) total';
$params = array('siteid' => $SITE->id);
$enrolmenttotal = $DB->count_records_sql($sql, $params);
@@ -3978,7 +3978,7 @@ function average_number_of_courses_modules() {
WHERE c.id = cm.course
AND c.id <> :siteid
AND cm.visible = 1
- AND c.visible = 1) as total';
+ AND c.visible = 1) total';
$params = array('siteid' => $SITE->id);
$moduletotal = $DB->count_records_sql($sql, $params);

0 comments on commit e412ca9

Please sign in to comment.