Skip to content

Commit

Permalink
MDL-34234 course: Fixed notice causing issues in JS when upgrade sett…
Browse files Browse the repository at this point in the history
…ings for 2.3+ not run
  • Loading branch information
Sam Hemelryk committed Sep 30, 2012
1 parent 5d6285c commit 10654e3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mod/resource/lib.php
Expand Up @@ -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);
Expand Down

0 comments on commit 10654e3

Please sign in to comment.