mirror of
https://github.com/moodle/moodle.git
synced 2025-01-31 12:45:04 +01:00
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:
parent
c75f5b4348
commit
ff446576af
@ -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");
|
||||
|
Loading…
x
Reference in New Issue
Block a user