diff --git a/module/block/view/setmodule.html.php b/module/block/view/setmodule.html.php index f681e4ba9e..c4c858826a 100644 --- a/module/block/view/setmodule.html.php +++ b/module/block/view/setmodule.html.php @@ -23,7 +23,7 @@ $themeRoot = $webRoot . "theme/"; params->$key) ? $block->params->$key : '') : (isset($param['default']) ? $param['default'] : ''); + $default = $block ? (isset($block->params->type) ? $block->params->type : '') : (isset($param['default']) ? $param['default'] : ''); $options = isset($param['options']) ? $param['options'] : array(); echo html::$control("params[type]", $options, $default, "class='form-control chosen' $attr"); ?>