From 5326e5473c2648f99051a318a8e8b6d95b7f273f Mon Sep 17 00:00:00 2001 From: nfreear Date: Tue, 7 Nov 2006 17:29:14 +0000 Subject: [PATCH] Fixed $maxbytes warning (Bug MDL-7380 "groups".) --- group/groupui/index.php | 26 ++++++++++++++------------ 1 file changed, 14 insertions(+), 12 deletions(-) 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 -- 2.39.5