diff --git a/lib/uploadlib.php b/lib/uploadlib.php
index 66e81e2755e..0c773a89775 100644
--- a/lib/uploadlib.php
+++ b/lib/uploadlib.php
@@ -383,10 +383,11 @@ function upload_print_form_fragment($numfiles=1,$names=null,$descriptions=null,$
if (is_array($descriptions) && !empty($descriptions[$i])) {
$str .= ''.$descriptions[$i].'
';
}
- $str .= '
'."\n";
+ $name = ((is_array($names) && !empty($names[$i])) ? $names[$i] : 'FILE_'.$i);
+ $str .= '
'."\n";
if ($uselabels) {
- $str .= get_string('uploadlabel').'
'."\n";
}
}
@@ -673,4 +674,4 @@ function clam_change_log($oldpath,$newpath,$update=true) {
}
}
}
-?>
\ No newline at end of file
+?>
diff --git a/user/edit.html b/user/edit.html
index 5c88cbb9234..3e7ab0eb360 100644
--- a/user/edit.html
+++ b/user/edit.html
@@ -20,7 +20,7 @@ if (isadmin()) {
echo "
'.get_string('forcepasswordchange').':
:
| "; } else if (strlen($CFG->changepassword) > 1) { - echo " | | ";
+ echo " | ";
}
}
if ($course->category and
((isstudent($course->id) and ($user->id == $USER->id) and !isguest() and $CFG->allowunenroll) or
(isteacheredit($course->id) and isstudent($course->id, $user->id))) ) {
- echo " | ";
+ echo " | ";
}
if ((isadmin() and !isadmin($user->id)) or (isteacher($course->id) and ($USER->id != $user->id) and !iscreator($user->id))) {
- echo " | ";
+ echo " | ";
}
echo ""; echo " |