diff --git a/flextype/core/Forms.php b/flextype/core/Forms.php index 9d3edfdc..5f605f95 100644 --- a/flextype/core/Forms.php +++ b/flextype/core/Forms.php @@ -195,9 +195,9 @@ class Forms protected function templateSelectField($name, $options, $value, $property) { - $_templates_list = $this->flextype['themes']->getTemplates($this->flextype['registry']->get('settings.theme')); + $_templates_list = $this->flextype['themes']->getTemplates($this->flextype['registry']->get('settings.theme')); - $options = []; + $options = []; if (count($_templates_list) > 0) { foreach ($_templates_list as $template) { @@ -209,9 +209,7 @@ class Forms } } - $form_element = Form::select($name, $options, $value, $property['attributes']); - - return $form_element; + return Form::select($name, $options, $value, $property['attributes']); } protected function selectField($name, $options, $value, $property)