From: nfreear Date: Tue, 7 Nov 2006 17:29:14 +0000 (+0000) Subject: Fixed $maxbytes warning (Bug MDL-7380 "groups".) X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=5326e5473c2648f99051a318a8e8b6d95b7f273f;p=moodle.git Fixed $maxbytes warning (Bug MDL-7380 "groups".) --- diff --git a/group/groupui/index.php b/group/groupui/index.php index 6053252bbd..b6047f5891 100644 --- a/group/groupui/index.php +++ b/group/groupui/index.php @@ -1,9 +1,12 @@ id) ? $USER->sesskey : ''; - - if (!empty($CFG->gdversion) and $maxbytes) { + + if (!empty($CFG->gdversion)) { //TODO: and $maxbytes) $printuploadpicture = true; } else { $printuploadpicture = false; } - - + + $maxbytes = get_max_upload_file_size($CFG->maxbytes, $course->maxbytes); $strgroups = get_string('groups'); $strparticipants = get_string('participants'); @@ -49,11 +52,10 @@ if (!$error) { "wwwroot/course/view.php?id=$courseid\">$course->shortname ". "-> wwwroot/user/index.php?id=$courseid\">$strparticipants ". "-> $strgroups", "", "", true, '', user_login_string($course, $USER)); - + require_once('form.html'); - - print_footer($course); + print_footer($course); } ?> \ No newline at end of file