@@ -45,11 +45,6 @@ public function manageAddRow(array &$vars)
4545 $ this ->view ->base_uri = $ this ->base_uri ;
4646 $ this ->view ->setDefaultView ('components ' . DS . 'modules ' . DS . 'upcloud ' . DS );
4747 Loader::loadHelpers ($ this , ['Form ' , 'Html ' , 'Widget ' ]);
48- if (!empty ($ vars )) {
49- if (empty ($ vars ['use_ssl ' ])) {
50- $ vars ['use_ssl ' ] = 'false ' ;
51- }
52- }
5348 $ this ->view ->set ('vars ' , (object ) $ vars );
5449 return $ this ->view ->fetch ();
5550 }
@@ -69,10 +64,6 @@ public function manageEditRow($module_row, array &$vars)
6964 Loader::loadHelpers ($ this , ['Form ' , 'Html ' , 'Widget ' ]);
7065 if (empty ($ vars )) {
7166 $ vars = $ module_row ->meta ;
72- } else {
73- if (empty ($ vars ['use_ssl ' ])) {
74- $ vars ['use_ssl ' ] = 'false ' ;
75- }
7667 }
7768 $ this ->view ->set ('vars ' , (object ) $ vars );
7869 return $ this ->view ->fetch ();
@@ -119,9 +110,6 @@ public function editModuleRow($module_row, array &$vars)
119110 {
120111 $ meta_fields = ['account_name ' , 'api_token ' , 'api_base_url ' ];
121112 $ encrypted_fields = ['api_token ' ];
122- if (empty ($ vars ['use_ssl ' ])) {
123- $ vars ['use_ssl ' ] = 'false ' ;
124- }
125113 $ this ->Input ->setRules ($ this ->getRowRules ($ vars ));
126114 if ($ this ->Input ->validates ($ vars )) {
127115 $ meta = [];
0 commit comments