* fix error varname.

This commit is contained in:
wangyidong
2019-11-19 17:09:17 +08:00
parent 5336c5e1c3
commit 97c0a65e21
+1 -1
View File
@@ -23,7 +23,7 @@ $themeRoot = $webRoot . "theme/";
<?php
$control = $param['control'];
$attr = empty($param['attr']) ? '' : $param['attr'];
$default = $block ? (isset($block->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");
?>