Home
Documentation
Downloads
Demo
Tracker
Development
Translation
Moodle.net
Search
projects
/
moodle.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5d6285c
)
MDL-34234 course: Fixed notice causing issues in JS when upgrade settings for 2.3...
author
Sam Hemelryk
<sam@moodle.com>
Sun, 5 Aug 2012 21:29:41 +0000
(09:29 +1200)
committer
Sam Hemelryk
<sam@moodle.com>
Sun, 30 Sep 2012 20:58:09 +0000
(09:58 +1300)
mod/resource/lib.php
patch
|
blob
|
blame
|
history
diff --git
a/mod/resource/lib.php
b/mod/resource/lib.php
index
d2cf5e1
..
0a330fe
100644
(file)
--- a/
mod/resource/lib.php
+++ b/
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);