]> git.mjollnir.org Git - moodle.git/commitdiff
Fixed $maxbytes warning (Bug MDL-7380 "groups".)
authornfreear <nfreear>
Tue, 7 Nov 2006 17:29:14 +0000 (17:29 +0000)
committernfreear <nfreear>
Tue, 7 Nov 2006 17:29:14 +0000 (17:29 +0000)
group/groupui/index.php

index 6053252bbdbfc56dde6202f787f563a43a232b1b..b6047f5891f51456c2aedafcda1cf725a0953670 100644 (file)
@@ -1,9 +1,12 @@
 <?php // $Id$
-
-/**********************************************
- * The main group management user interface
- ************************************************/
-
+/**
+ * The main group management user interface.
+ *
+ * @copyright &copy; 2006 The Open University
+ * @author J.White AT open.ac.uk 
+ * @license http://www.gnu.org/copyleft/gpl.html GNU Public License
+ * @package groups
+ */
 require_once('../../config.php');
 require_once('../lib/lib.php');
 //require_once('../../course/lib.php');
@@ -32,14 +35,14 @@ if (!$error) {
 
        // Set the session key so we can check this later
        $sesskey = !empty($USER->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) {
                     "<a href=\"$CFG->wwwroot/course/view.php?id=$courseid\">$course->shortname</a> ".
                     "-> <a href=\"$CFG->wwwroot/user/index.php?id=$courseid\">$strparticipants</a> ".
                     "-> $strgroups", "", "", true, '', user_login_string($course, $USER));
-                    
+
        require_once('form.html');
-       
-       print_footer($course);
 
+       print_footer($course);
 }
 
 ?>
\ No newline at end of file