mirror of
https://github.com/moodle/moodle.git
synced 2025-01-19 14:27:22 +01:00
Fixed sql query in assignment_get_unmailed_submissions() - we can't rely on user_students anymore.
This commit is contained in:
parent
01c65218a2
commit
4be6bced7f
@ -2132,12 +2132,11 @@ function assignment_get_unmailed_submissions($starttime, $endtime) {
|
||||
|
||||
return get_records_sql("SELECT s.*, a.course, a.name
|
||||
FROM {$CFG->prefix}assignment_submissions s,
|
||||
{$CFG->prefix}assignment a,
|
||||
{$CFG->prefix}assignment a
|
||||
WHERE s.mailed = 0
|
||||
AND s.timemarked <= $endtime
|
||||
AND s.timemarked >= $starttime
|
||||
AND s.assignment = a.id
|
||||
AND s.userid = us.userid");
|
||||
AND s.assignment = a.id");
|
||||
|
||||
/* return get_records_sql("SELECT s.*, a.course, a.name
|
||||
FROM {$CFG->prefix}assignment_submissions s,
|
||||
|
Loading…
x
Reference in New Issue
Block a user