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

files if timemodified is set ... workaround for possible bug
This commit is contained in:
moodler 2002-11-12 05:05:21 +00:00
parent c75f5b4348
commit ff446576af

View File

@ -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");