Skip to content
Permalink
Browse files

Merge branch 'MDL-37165-master' of git://github.com/damyon/moodle

  • Loading branch information...
danpoltawski committed Dec 17, 2012
2 parents 2075186 + 0c7b691 commit a8103b1c078f83ac8c1a35c61263396ecf56daa8
Showing with 4 additions and 4 deletions.
  1. +4 −4 mod/assign/locallib.php
@@ -1154,7 +1154,7 @@ public function count_submissions_need_grading() {
LEFT JOIN {assign_grades} g ON
s.assignment = g.assignment AND
s.userid = g.userid
JOIN(' . $esql . ') AS e ON e.id = s.userid
JOIN(' . $esql . ') e ON e.id = s.userid
WHERE
s.assignment = :assignid AND
s.timemodified IS NOT NULL AND
@@ -1183,7 +1183,7 @@ public function count_grades() {
$sql = 'SELECT COUNT(g.userid)
FROM {assign_grades} g
JOIN(' . $esql . ') AS e ON e.id = g.userid
JOIN(' . $esql . ') e ON e.id = g.userid
WHERE g.assignment = :assignid';
return $DB->count_records_sql($sql, $params);
@@ -1222,7 +1222,7 @@ public function count_submissions() {
$sql = 'SELECT COUNT(s.userid)
FROM {assign_submission} s
JOIN(' . $esql . ') AS e ON e.id = s.userid
JOIN(' . $esql . ') e ON e.id = s.userid
WHERE
s.assignment = :assignid AND
s.timemodified IS NOT NULL';
@@ -1258,7 +1258,7 @@ public function count_submissions_with_status($status) {
} else {
$sql = 'SELECT COUNT(s.userid)
FROM {assign_submission} s
JOIN(' . $esql . ') AS e ON e.id = s.userid
JOIN(' . $esql . ') e ON e.id = s.userid
WHERE
s.assignment = :assignid AND
s.timemodified IS NOT NULL AND

0 comments on commit a8103b1

Please sign in to comment.
You can’t perform that action at this time.