mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 16:36:37 +02: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
1 changed files with 1 additions and 8 deletions
|
@ -272,13 +272,6 @@ function assignment_print_difference($time) {
|
||||||
function assignment_print_submission($assignment, $user, $submission, $teachers, $grades) {
|
function assignment_print_submission($assignment, $user, $submission, $teachers, $grades) {
|
||||||
global $THEME;
|
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<TABLE BORDER=1 CELLSPACING=0 valign=top cellpadding=10 align=center>";
|
||||||
|
|
||||||
echo "\n<TR>";
|
echo "\n<TR>";
|
||||||
|
@ -300,7 +293,7 @@ function assignment_print_submission($assignment, $user, $submission, $teachers,
|
||||||
|
|
||||||
if ($assignment->type != OFFLINE) {
|
if ($assignment->type != OFFLINE) {
|
||||||
echo "\n<TR><TD BGCOLOR=\"$THEME->cellcontent\">";
|
echo "\n<TR><TD BGCOLOR=\"$THEME->cellcontent\">";
|
||||||
if ($submission->numfiles) {
|
if ($submission->timemodified) {
|
||||||
assignment_print_user_files($assignment, $user);
|
assignment_print_user_files($assignment, $user);
|
||||||
} else {
|
} else {
|
||||||
print_string("notsubmittedyet", "assignment");
|
print_string("notsubmittedyet", "assignment");
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue