"MDL-13766, fixed maxbytes parameter"
authorDongsheng Cai <unoter@gmail.com>
Tue, 9 Mar 2010 01:49:02 +0000 (01:49 +0000)
committerDongsheng Cai <unoter@gmail.com>
Tue, 9 Mar 2010 01:49:02 +0000 (01:49 +0000)
lib/form/filemanager.php

index ca00ee6..4d8abe0 100644 (file)
@@ -42,7 +42,7 @@ class MoodleQuickForm_filemanager extends HTML_QuickForm_element {
                 $this->_options[$name] = $value;
             }
         }
-        if (empty($options['maxbytes'])) {
+        if (!empty($options['maxbytes'])) {
             $this->_options['maxbytes'] = get_max_upload_file_size($CFG->maxbytes, $options['maxbytes']);
         }
         parent::HTML_QuickForm_element($elementName, $elementLabel, $attributes);