Permalink
Browse files

Small fix just in case numfiles isn't set ... it will still try to di…

…splay

files if timemodified is set ... workaround for possible bug
  • Loading branch information...
1 parent c75f5b4 commit ff446576af0aa421d8378daa04c3af291580e1ca moodler committed Nov 12, 2002
Showing with 1 addition and 8 deletions.
  1. +1 −8 mod/assignment/lib.php
View
9 mod/assignment/lib.php
@@ -272,13 +272,6 @@ function assignment_print_difference($time) {
function assignment_print_submission($assignment, $user, $submission, $teachers, $grades) {
global $THEME;
- switch ($assignment->type) {
- case OFFLINE:
- break;
- case UPLOADSINGLE:
- break;
- }
-
echo "\n<TABLE BORDER=1 CELLSPACING=0 valign=top cellpadding=10 align=center>";
echo "\n<TR>";
@@ -300,7 +293,7 @@ function assignment_print_submission($assignment, $user, $submission, $teachers,
if ($assignment->type != OFFLINE) {
echo "\n<TR><TD BGCOLOR=\"$THEME->cellcontent\">";
- if ($submission->numfiles) {
+ if ($submission->timemodified) {
assignment_print_user_files($assignment, $user);
} else {
print_string("notsubmittedyet", "assignment");

0 comments on commit ff44657

Please sign in to comment.