Removing a notice on PHP 5

This commit is contained in:
moodler 2005-01-06 13:23:02 +00:00
parent c30b1bc038
commit 1c394da4f6

View File

@ -125,7 +125,7 @@
} }
assignment_print_feedback($course, $submission, $assignment); assignment_print_feedback($course, $submission, $assignment);
} }
if (!$submission->timemarked or $assignment->resubmit) { if (empty($submission->timemarked) or (!empty($assignment->resubmit))) {
if ($submission and $submission->timemodified) { if ($submission and $submission->timemodified) {
echo "<p align=\"center\">".get_string("overwritewarning", "assignment")."</p>"; echo "<p align=\"center\">".get_string("overwritewarning", "assignment")."</p>";
} }