Permalink
Browse files

MDL-36426 files: Undefined variable in Non-JS File Picker

  • Loading branch information...
FMCorz authored and stronk7 committed Feb 26, 2013
1 parent cbb31c9 commit 5668eb3c942eca2c34bf44d0574e6671040f150a
Showing with 4 additions and 0 deletions.
  1. +4 −0 repository/filepicker.php
@@ -95,6 +95,10 @@
}
// Make sure maxbytes passed is within site filesize limits.
+$coursemaxbytes = 0;
+if (!empty($course)) {
+ $coursemaxbytes = $course->maxbytes;
+}
$maxbytes = get_max_upload_file_size($CFG->maxbytes, $coursemaxbytes, $maxbytes);
$params = array('ctx_id' => $contextid, 'itemid' => $itemid, 'env' => $env, 'course'=>$courseid, 'maxbytes'=>$maxbytes, 'maxfiles'=>$maxfiles, 'subdirs'=>$subdirs, 'sesskey'=>sesskey());

0 comments on commit 5668eb3

Please sign in to comment.