Skip to content

Commit

Permalink
fix for bug 4067
Browse files Browse the repository at this point in the history
  • Loading branch information
toyomoyo committed Nov 25, 2005
1 parent ba43f66 commit 15b3db1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions mod/assignment/type/uploadsingle/assignment.class.php
Expand Up @@ -64,7 +64,7 @@ function view() {
}
}

if ($this->isopen() && (!$filecount || $this->assignment->resubmit)) {
if ($this->isopen() && (!$filecount || $this->assignment->resubmit || !$submission->timemarked)) {
$this->view_upload_form();
}

Expand Down Expand Up @@ -100,8 +100,8 @@ function upload() {
$this->view_header(get_string('upload'));

$filecount = $this->count_user_files($USER->id);

if ($this->isopen() && (!$filecount || $this->assignment->resubmit)) {
$submission = $this->get_submission($USER->id);
if ($this->isopen() && (!$filecount || $this->assignment->resubmit || !$submission->timemarked)) {
if ($submission = $this->get_submission($USER->id)) {
//TODO: change later to ">= 0", to prevent resubmission when graded 0
if (($submission->grade > 0) and !$this->assignment->resubmit) {
Expand Down

0 comments on commit 15b3db1

Please sign in to comment.