Permalink
Browse files

Merge branch 'MDL-34691_assign_overdue_by_23' of https://github.com/S…

…WiT/moodle into MOODLE_23_STABLE
  • Loading branch information...
2 parents 8215709 + 8b9416d commit 5a566ceac7c080b2e0b75bbf3877bf3153fe115a @danpoltawski danpoltawski committed Aug 21, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 mod/assign/renderer.php
View
2 mod/assign/renderer.php
@@ -420,7 +420,7 @@ public function render_assign_submission_status(assign_submission_status $status
$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');

0 comments on commit 5a566ce

Please sign in to comment.