diff --git a/mod/assignment/mod.html b/mod/assignment/mod.html index d9f54df115e..d0486f1b9d9 100644 --- a/mod/assignment/mod.html +++ b/mod/assignment/mod.html @@ -77,14 +77,18 @@ maxbytes == $sizebytes) { + $sizeinlist = true; + } } $filesize[$maxsize] = display_size($maxsize); - if (!$form->maxbytes) { + if (!$sizeinlist) { $form->maxbytes = get_real_size("500K"); } ksort($filesize, SORT_NUMERIC);