From 1c394da4f6c156aa733d384a68226bbf14ff2d5d Mon Sep 17 00:00:00 2001 From: moodler Date: Thu, 6 Jan 2005 13:23:02 +0000 Subject: [PATCH] Removing a notice on PHP 5 --- mod/assignment/view.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mod/assignment/view.php b/mod/assignment/view.php index af0e4cfd8c5..eee97730755 100644 --- a/mod/assignment/view.php +++ b/mod/assignment/view.php @@ -125,7 +125,7 @@ } 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) { echo "

".get_string("overwritewarning", "assignment")."

"; }