From: moodler Date: Thu, 6 Jan 2005 13:23:02 +0000 (+0000) Subject: Removing a notice on PHP 5 X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=1c394da4f6c156aa733d384a68226bbf14ff2d5d;p=moodle.git Removing a notice on PHP 5 --- diff --git a/mod/assignment/view.php b/mod/assignment/view.php index af0e4cfd8c..eee9773075 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")."

"; }