Permalink
Browse files

MDL-27156 repositories: altered a check as the !empty() test on $PAGE…

…->course was always failing for some reason
  • Loading branch information...
1 parent bc8da01 commit 703ffaea05dd73cff661cbad8d58e6286fc6b20a @andyjdavis andyjdavis committed Jun 20, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/form/filepicker.php
@@ -76,7 +76,7 @@ function MoodleQuickForm_filepicker($elementName=null, $elementLabel=null, $attr
$fpmaxbytes = $options['maxbytes'];
}
$coursemaxbytes = 0;
- if (!empty($PAGE->course)) {
+ if (!empty($PAGE->course->maxbytes)) {
$coursemaxbytes = $PAGE->course->maxbytes;
}
$this->_options['maxbytes'] = get_user_max_upload_file_size($PAGE->context, $CFG->maxbytes, $coursemaxbytes, $fpmaxbytes);

0 comments on commit 703ffae

Please sign in to comment.