mirror of
https://github.com/moodle/moodle.git
synced 2025-08-06 01:16:44 +02:00
assignments on mymoodle page, Bug #5839 - Found more than one record in get_record_sql !; merged from MOODLE_16_STABLE
This commit is contained in:
parent
6865c1ff89
commit
b3d4840d39
1 changed files with 2 additions and 1 deletions
|
@ -2358,7 +2358,8 @@ function assignment_print_overview($courses, &$htmlarray) {
|
|||
} else {
|
||||
$sql = "SELECT *
|
||||
FROM {$CFG->prefix}assignment_submissions
|
||||
WHERE userid = '$USER->id'";
|
||||
WHERE userid = '$USER->id'
|
||||
AND assignment = '{$assignment->id}'";
|
||||
if ($submission = get_record_sql($sql)) {
|
||||
if ($submission->teacher == 0 && $submission->timemarked == 0) {
|
||||
$str .= $strsubmitted . ', ' . $strnotgradedyet;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue