Browse files

MDL-34234 course: Fixed notice causing issues in JS when upgrade sett…

…ings for 2.3+ not run
  • Loading branch information...
1 parent 5d6285c commit 10654e32e22466a392f19806dfe38c09d21096a6 Sam Hemelryk committed Aug 6, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 mod/resource/lib.php
View
4 mod/resource/lib.php
@@ -512,8 +512,8 @@ function resource_dndupload_handle($uploadinfo) {
$data->popupwidth = $config->popupwidth;
$data->printheading = $config->printheading;
$data->printintro = $config->printintro;
- $data->showsize = $config->showsize;
- $data->showtype = $config->showtype;
+ $data->showsize = (isset($config->showsize)) ? $config->showsize : 0;
+ $data->showtype = (isset($config->showtype)) ? $config->showtype : 0;
$data->filterfiles = $config->filterfiles;
return resource_add_instance($data, null);

0 comments on commit 10654e3

Please sign in to comment.