Skip to content

Commit be90262

Browse files
author
Marius Burkard
committed
- remoting (json) should produce array
- Changed default value for expire of ftp user, should have fixed: #3862
1 parent 69014bd commit be90262

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

interface/lib/classes/json_handler.inc.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ public function run() {
9191

9292
if(is_array($_POST)) {
9393
foreach($_POST as $key => $val) {
94-
$tmp = json_decode($val);
94+
$tmp = json_decode($val, true);
9595
if(!$tmp) $params[] = $val;
9696
else $params[] = (array)$tmp;
9797
}

interface/web/sites/form/ftp_user.tform.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -296,7 +296,8 @@
296296

297297
$form['tabs']['advanced']['fields']['expires'] = array(
298298
'datatype' => 'DATETIME',
299-
'formtype' => 'DATETIME'
299+
'formtype' => 'DATETIME',
300+
'default' => null
300301
);
301302

302303

0 commit comments

Comments
 (0)