X-Git-Url: http://git.moodle.org/gw?p=moodle.git;a=blobdiff_plain;f=mod%2Fassign%2Frenderer.php;h=c44f451e0368c0811953d2ad7da3ad3d681a5926;hp=e90556fd562ce049f9036fb5544a7adb07cae92d;hb=5d9e2ab19e0b2626d7ad5b3d2fae6ac7b8031632;hpb=b6476885a46474161a79f8c73a38045e9443c3c5 diff --git a/mod/assign/renderer.php b/mod/assign/renderer.php index e90556fd562..c44f451e036 100644 --- a/mod/assign/renderer.php +++ b/mod/assign/renderer.php @@ -417,7 +417,7 @@ class mod_assign_renderer extends plugin_renderer_base { $row = new html_table_row(); $cell1 = new html_table_cell(get_string('timeremaining', 'assign')); if ($duedate - $time <= 0) { - if (!$status->submission || $status->submission != ASSIGN_SUBMISSION_STATUS_SUBMITTED) { + if (!$status->submission || $status->submission->status != ASSIGN_SUBMISSION_STATUS_SUBMITTED) { if ($status->submissionsenabled) { $cell2 = new html_table_cell(get_string('overdue', 'assign', format_time($time - $duedate))); $cell2->attributes = array('class'=>'overdue');