MDL-34691 assign: Time remaining "Assignment is overdue" was incorrectly being displa...
authorMatt Switlik <switlik@oakland.edu>
Wed, 1 Aug 2012 20:40:34 +0000 (16:40 -0400)
committerMatt Switlik <switlik@oakland.edu>
Wed, 1 Aug 2012 20:40:34 +0000 (16:40 -0400)
mod/assign/renderer.php

index 8ffe18f..3ca0232 100644 (file)
@@ -420,7 +420,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');