diff --git a/extend/system/Form.php b/extend/system/Form.php index bd131ceebc9ea75628edde6311bab2d412a4748a..cc2970e276cf7368be510a2f776266bafd4c4735 100644 --- a/extend/system/Form.php +++ b/extend/system/Form.php @@ -394,12 +394,11 @@ class FormBuilder */ public function switch(array $data = []): string { - $value = $this->formtype ? '{$data.' . $data['name'] . '}' : ''; $param = '$data.' . $data['name']; if ($this->formtype) { return << - checked lay-skin="switch" /> + checked lay-skin="switch" /> Eof; } return <<